diff options
| author | jtcat <jftcatarino@gmail.com> | 2024-11-22 14:59:40 +0000 |
|---|---|---|
| committer | jtcat <jftcatarino@gmail.com> | 2024-11-22 15:15:31 +0000 |
| commit | bead829fd5d40aa86ff5372b2edff6924bbe01fe (patch) | |
| tree | 30043bac08ea74757e625eaf2218f952662f106d | |
| parent | f952bfe9985ad8f507cc29b2c7601bbba18b8039 (diff) | |
| download | redot-engine-bead829fd5d40aa86ff5372b2edff6924bbe01fe.tar.gz | |
Fix inspector section iteration in `update_tree`
| -rw-r--r-- | editor/editor_inspector.cpp | 2 |
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); |
