summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-22 14:54:28 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-22 14:54:28 -0600
commit2adfa20ee2012fda8d2a21092fd20ae1f989ac8a (patch)
treed93dd1bcd33725c5fbcbd206cb101020ee1a616a /editor
parent514d73affc1370626069ea7bbbd74a2457b53b12 (diff)
parentbead829fd5d40aa86ff5372b2edff6924bbe01fe (diff)
downloadredot-engine-2adfa20ee2012fda8d2a21092fd20ae1f989ac8a.tar.gz
Merge pull request #99544 from jtcat/fix-inspector-favorites
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);