Hide parameters list when empty and not in dev mode

This commit is contained in:
bd_ 2022-10-16 14:07:19 -07:00
parent 2a2a450111
commit 7e2534ebe3

View File

@ -416,7 +416,12 @@ namespace net.fushizen.modular_avatar.core.editor
_devMode = EditorGUILayout.Toggle(G("params.devmode"), _devMode);
if (EditorGUI.EndChangeCheck() || _reorderableList == null || _needsRebuild) SetupList();
Debug.Assert(_reorderableList != null, nameof(_reorderableList) + " != null");
_reorderableList.DoLayoutList();
if (_devMode || _selectedIndices.Count > 0)
{
_reorderableList.DoLayoutList();
}
serializedObject.ApplyModifiedProperties();
Localization.ShowLanguageUI();