Skip to content

Commit

Permalink
Merge pull request #74795 from KoBeWi/MassNodeEdit
Browse files Browse the repository at this point in the history
Fix MultiNodeEdit not cleared after deleting nodes
  • Loading branch information
YuriSizov authored Mar 15, 2023
2 parents f9125e6 + fbffd68 commit 5dd52f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5dd52f4

Please sign in to comment.