From f8d023ed5c8bb4b1e67928f60b2a38350f3d45e9 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Mon, 20 May 2024 21:36:44 -0500 Subject: [PATCH] Remove drop down image on scripts if no objects are in the group. --- Source/Editor/CustomEditors/Dedicated/ScriptsEditor.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Editor/CustomEditors/Dedicated/ScriptsEditor.cs b/Source/Editor/CustomEditors/Dedicated/ScriptsEditor.cs index 9227dac06..852fd99c5 100644 --- a/Source/Editor/CustomEditors/Dedicated/ScriptsEditor.cs +++ b/Source/Editor/CustomEditors/Dedicated/ScriptsEditor.cs @@ -880,6 +880,13 @@ namespace FlaxEditor.CustomEditors.Dedicated group.Panel.HeaderTextMargin = new Margin(scriptDrag.Right - 12, 15, 2, 2); group.Object(values, editor); + // Remove drop down arrows and containment lines if no objects in the group + if (group.Children.Count == 0) + { + group.Panel.ArrowImageOpened = null; + group.Panel.ArrowImageClosed = null; + group.Panel.EnableContainmentLines = false; + } // Scripts arrange bar dragBar = layout.Custom();