Clear (sub)group hashmaps when changing category. (cherry picked from commit 9b7dcfa0e2c2669f7ba2c34cd45482279028d5b5)
@@ -2774,6 +2774,9 @@ void EditorInspector::update_tree() {
subgroup_base = "";
section_depth = 0;
+ vbox_per_path.clear();
+ editor_inspector_array_per_prefix.clear();
+
if (!show_categories) {
continue;
}