Change timing of BuildHeightCache (#333) (#336)

This commit is contained in:
Hitsub 2023-06-18 15:45:07 +09:00 committed by GitHub
parent 5577e4c1bc
commit 9a56ff5bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -460,12 +460,12 @@ namespace nadena.dev.modular_avatar.core.editor
protected override void OnInnerInspectorGUI()
{
ElementHeightCache = BuildHeightCache();
EditorGUI.BeginChangeCheck();
_devMode = EditorGUILayout.Toggle(G("params.devmode"), _devMode);
if (EditorGUI.EndChangeCheck() || _reorderableList == null || _needsRebuild) SetupList();
Debug.Assert(_reorderableList != null, nameof(_reorderableList) + " != null");
ElementHeightCache = BuildHeightCache();
if (_devMode || _selectedIndices.Count > 0)
{