mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-01 22:07:01 +01:00
Fix errors during filtering Nodes in the editor.
This commit is contained in:
parent
f4118ae3fb
commit
a5fcaa536f
@ -655,8 +655,6 @@ bool SceneTreeEditor::_update_filter(TreeItem *p_parent, bool p_scroll_to_select
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
memdelete(p_parent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editor_selection) {
|
if (editor_selection) {
|
||||||
@ -673,6 +671,11 @@ bool SceneTreeEditor::_update_filter(TreeItem *p_parent, bool p_scroll_to_select
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(keep_for_children || keep)) {
|
||||||
|
memdelete(p_parent);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return keep || keep_for_children;
|
return keep || keep_for_children;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user