mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +08:00
Hide parameters list when empty and not in dev mode
This commit is contained in:
parent
2a2a450111
commit
7e2534ebe3
@ -416,7 +416,12 @@ namespace net.fushizen.modular_avatar.core.editor
|
|||||||
_devMode = EditorGUILayout.Toggle(G("params.devmode"), _devMode);
|
_devMode = EditorGUILayout.Toggle(G("params.devmode"), _devMode);
|
||||||
if (EditorGUI.EndChangeCheck() || _reorderableList == null || _needsRebuild) SetupList();
|
if (EditorGUI.EndChangeCheck() || _reorderableList == null || _needsRebuild) SetupList();
|
||||||
Debug.Assert(_reorderableList != null, nameof(_reorderableList) + " != null");
|
Debug.Assert(_reorderableList != null, nameof(_reorderableList) + " != null");
|
||||||
_reorderableList.DoLayoutList();
|
|
||||||
|
if (_devMode || _selectedIndices.Count > 0)
|
||||||
|
{
|
||||||
|
_reorderableList.DoLayoutList();
|
||||||
|
}
|
||||||
|
|
||||||
serializedObject.ApplyModifiedProperties();
|
serializedObject.ApplyModifiedProperties();
|
||||||
|
|
||||||
Localization.ShowLanguageUI();
|
Localization.ShowLanguageUI();
|
||||||
|
Loading…
Reference in New Issue
Block a user