From 5f03a73186e707994af22ff8eabbc80758bdadd3 Mon Sep 17 00:00:00 2001 From: GER-Space Date: Sun, 20 Jan 2019 12:40:07 +0100 Subject: [PATCH] enable spawning when there is only a builtin group --- src/Editor/StaticsEditorGUI.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Editor/StaticsEditorGUI.cs b/src/Editor/StaticsEditorGUI.cs index 505e5306..1a8f167b 100644 --- a/src/Editor/StaticsEditorGUI.cs +++ b/src/Editor/StaticsEditorGUI.cs @@ -772,7 +772,10 @@ internal void ShowGroupScroll() { foreach (var groupCenter in localGroups) { - + if (groupCenter.isBuiltIn) + { + continue; + } if (GUILayout.Button(new GUIContent(" " + groupCenter.Group, "Edit this Group."), GUILayout.Height(23))) { EditorGUI.CloseEditors(); @@ -873,10 +876,6 @@ internal static void ResetLocalGroupList() { continue; } - if (groupCenter.isBuiltIn) - { - continue; - } foundList.Add(groupCenter); }