Browse Source

Fix inspector section iteration in `update_tree`

jtcat 9 months ago
parent
commit
bead829fd5
1 changed files with 0 additions and 2 deletions
  1. 0 2
      editor/editor_inspector.cpp

+ 0 - 2
editor/editor_inspector.cpp

@@ -3648,8 +3648,6 @@ void EditorInspector::update_tree() {
 		for (List<EditorInspectorSection *>::Element *I = sections.back(); I; I = I->prev()) {
 		for (List<EditorInspectorSection *>::Element *I = sections.back(); I; I = I->prev()) {
 			EditorInspectorSection *section = I->get();
 			EditorInspectorSection *section = I->get();
 			if (section->get_vbox()->get_child_count() == 0) {
 			if (section->get_vbox()->get_child_count() == 0) {
-				I = I->prev();
-
 				sections.erase(section);
 				sections.erase(section);
 				vbox_per_path[main_vbox].erase(section->get_section());
 				vbox_per_path[main_vbox].erase(section->get_section());
 				memdelete(section);
 				memdelete(section);