瀏覽代碼

Editor: Fix same-name (sub)groups interfering in Inspector

Clear (sub)group hashmaps when changing category.

(cherry picked from commit 9b7dcfa0e2c2669f7ba2c34cd45482279028d5b5)
Danil Alexeev 1 年之前
父節點
當前提交
8aff153ea2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      editor/editor_inspector.cpp

+ 3 - 0
editor/editor_inspector.cpp

@@ -2774,6 +2774,9 @@ void EditorInspector::update_tree() {
 			subgroup_base = "";
 			subgroup_base = "";
 			section_depth = 0;
 			section_depth = 0;
 
 
+			vbox_per_path.clear();
+			editor_inspector_array_per_prefix.clear();
+
 			if (!show_categories) {
 			if (!show_categories) {
 				continue;
 				continue;
 			}
 			}