summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-03-11 22:46:31 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-16 16:40:13 +0100
commit5faebb712ed8f0412fcf5ba30b012164483ea5b0 (patch)
treef9a29b4df99f898655db5ec19b2aadc3de3f19b7 /editor
parent1507bea80c2f70de1d2eaf3286e5117515a154ca (diff)
Fix MultiNodeEdit not cleared after deleting nodes
(cherry picked from commit fbffd686e23dfd2e5599d0b2ca35d71805d8d7a9)
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 385806a3a7..b1c3c51a9c 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2221,7 +2221,7 @@ void EditorNode::edit_item(Object *p_object, Object *p_editing_owner) {
}
void EditorNode::push_node_item(Node *p_node) {
- if (p_node || Object::cast_to<Node>(InspectorDock::get_inspector_singleton()->get_edited_object())) {
+ if (p_node || Object::cast_to<Node>(InspectorDock::get_inspector_singleton()->get_edited_object()) || Object::cast_to<MultiNodeEdit>(InspectorDock::get_inspector_singleton()->get_edited_object())) {
// Don't push null if the currently edited object is not a Node.
push_item(p_node);
}