Skip to content

Commit

Permalink
Fix issue based around materialproperttyblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
legoandmars committed May 28, 2021
1 parent 3bf5614 commit d9908dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CustomNotes/Utilities/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public static void AddMaterialPropertyBlockController(GameObject gameObject)
List<Renderer> rendererList = new List<Renderer>();
foreach (Renderer renderer in gameObject.GetComponentsInChildren<Renderer>())
{
if (renderer.material.shader.name.ToLower() == "custom/notehd") // only get the replaced note shader
DisableNoteColorOnGameobject colorDisabled = renderer.GetComponent<DisableNoteColorOnGameobject>();
if (!colorDisabled && renderer.material.shader.name.ToLower() == "custom/notehd") // only get the replaced note shader
{
rendererList.Add(renderer);
}
Expand Down

0 comments on commit d9908dc

Please sign in to comment.