summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorjtcat <jftcatarino@gmail.com>2024-11-22 14:59:40 +0000
committerjtcat <jftcatarino@gmail.com>2024-11-22 15:15:31 +0000
commitbead829fd5d40aa86ff5372b2edff6924bbe01fe (patch)
tree30043bac08ea74757e625eaf2218f952662f106d /editor
parentf952bfe9985ad8f507cc29b2c7601bbba18b8039 (diff)
downloadredot-engine-bead829fd5d40aa86ff5372b2edff6924bbe01fe.tar.gz
Fix inspector section iteration in `update_tree`
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_inspector.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 6b3c6b462d..6e837560f6 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -3648,8 +3648,6 @@ void EditorInspector::update_tree() {
for (List<EditorInspectorSection *>::Element *I = sections.back(); I; I = I->prev()) {
EditorInspectorSection *section = I->get();
if (section->get_vbox()->get_child_count() == 0) {
- I = I->prev();
-
sections.erase(section);
vbox_per_path[main_vbox].erase(section->get_section());
memdelete(section);