From 9a56ff5bb6fa42f624ab599fb9f7ca5320bab290 Mon Sep 17 00:00:00 2001 From: Hitsub Date: Sun, 18 Jun 2023 15:45:07 +0900 Subject: [PATCH] Change timing of BuildHeightCache (#333) (#336) --- .../Editor/Inspector/AvatarParametersEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/nadena.dev.modular-avatar/Editor/Inspector/AvatarParametersEditor.cs b/Packages/nadena.dev.modular-avatar/Editor/Inspector/AvatarParametersEditor.cs index 8b18432a..25d38a35 100644 --- a/Packages/nadena.dev.modular-avatar/Editor/Inspector/AvatarParametersEditor.cs +++ b/Packages/nadena.dev.modular-avatar/Editor/Inspector/AvatarParametersEditor.cs @@ -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) {