From a4e144b5440588fdcfc579f0fc2e99a2c17cc42b Mon Sep 17 00:00:00 2001 From: Felix Herbst Date: Tue, 28 Jul 2020 19:22:09 +0200 Subject: [PATCH] remove incorrect linear conversion --- .../UnityGLTF/Runtime/Scripts/Extensions/SchemaExtensions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/Extensions/SchemaExtensions.cs b/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/Extensions/SchemaExtensions.cs index 86c8ffebe..8f90edf7f 100644 --- a/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/Extensions/SchemaExtensions.cs +++ b/UnityGLTF/Assets/UnityGLTF/Runtime/Scripts/Extensions/SchemaExtensions.cs @@ -327,7 +327,9 @@ public static UnityEngine.Color ToUnityColorRaw(this GLTF.Math.Color color) public static GLTF.Math.Color ToNumericsColorRaw(this UnityEngine.Color color) { - var c = color.linear; + var c = color; + // if (QualitySettings.activeColorSpace == ColorSpace.Linear) + // c = c.linear; return new GLTF.Math.Color(c.r, c.g, c.b, c.a); }