Skip to content

Commit 8f6293d

Browse files
committed
PbrGraphGUI: commented out VERTEX_COLOR keyword check > currently not used in PbrGraph
1 parent 5877c70 commit 8f6293d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ private void DrawGameObjectInfo(Material targetMaterial)
285285
EditorGUILayout.Toggle("Has Vertex Colors", currentMaterialInfo.hasColor);
286286
EditorGUI.EndDisabledGroup();
287287

288-
if (currentMaterialInfo.hasColor != targetMaterial.IsKeywordEnabled("_VERTEX_COLORS_ON"))
288+
/*
289+
> _VERTEX_COLORS_ON is currently not used in the shader, so we can't really check for it
290+
291+
if (currentMaterialInfo.hasColor != targetMaterial.IsKeywordEnabled("_VERTEX_COLORS_ON"))
289292
{
290293
EditorGUI.indentLevel++;
291294
var msg = "";
@@ -318,7 +321,7 @@ private void DrawGameObjectInfo(Material targetMaterial)
318321
});
319322
}
320323
EditorGUI.indentLevel--;
321-
}
324+
}*/
322325

323326
EditorGUI.BeginDisabledGroup(true);
324327
EditorGUILayout.Toggle("Has UV0", currentMaterialInfo.hasUV0);

0 commit comments

Comments
 (0)