Merge pull request #94 from AnnulusGames/fix-treemap-color

Fix: GUI.color not reverting correctly
This commit is contained in:
Annulus Games 2024-06-21 10:24:19 +09:00 committed by GitHub
commit 84fb71550b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,6 +67,9 @@ namespace Alchemy.Editor
if (gameObject == null) return; if (gameObject == null) return;
var settings = AlchemySettings.GetOrCreateSettings(); var settings = AlchemySettings.GetOrCreateSettings();
var tempColor = GUI.color;
if (settings.ShowTreeMap) if (settings.ShowTreeMap)
{ {
selectionRect.width = 14; selectionRect.width = 14;
@ -130,7 +133,7 @@ namespace Alchemy.Editor
else break; else break;
} }
GUI.color = Color.white; GUI.color = tempColor;
} }
} }
} }