From 10fd74c4ebc700272bd0b549b887065e618458be Mon Sep 17 00:00:00 2001 From: TonyJeffree <47038542+TonyJeffree@users.noreply.github.com> Date: Tue, 25 Feb 2020 10:53:22 +0000 Subject: [PATCH] Bugfix in newer versions of Unity The removed line was not functioning as intended, it was covering the disclosure triangle of a parent GO with the mushroom icon if that parent GO also had a flowchart component. I'm sure there was a reason for this logic change, so I've left the if cases intact, but this was necessary in my own project so I thought I'd share it. --- Assets/Fungus/Scripts/Editor/HierarchyIcons.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Fungus/Scripts/Editor/HierarchyIcons.cs b/Assets/Fungus/Scripts/Editor/HierarchyIcons.cs index 61eb8bd0..0c3abcae 100644 --- a/Assets/Fungus/Scripts/Editor/HierarchyIcons.cs +++ b/Assets/Fungus/Scripts/Editor/HierarchyIcons.cs @@ -70,7 +70,7 @@ namespace Fungus // place the icon to the left of the element Rect r = new Rect(selectionRect); #if UNITY_2019_1_OR_NEWER - r.x -= r.height; + r.x = 0; #else r.x = 0; #endif @@ -84,4 +84,4 @@ namespace Fungus GUI.Label(r, TextureIcon); } } -} \ No newline at end of file +}