Prevent to add node to selection when node is not inside tree
This commit is contained in:
parent
2cf781d3c6
commit
4857eabddb
1 changed files with 1 additions and 1 deletions
|
@ -834,7 +834,7 @@ void EditorSelection::_node_removed(Node *p_node) {
|
|||
void EditorSelection::add_node(Node *p_node) {
|
||||
|
||||
ERR_FAIL_NULL(p_node);
|
||||
|
||||
ERR_FAIL_COND(!p_node->is_inside_tree());
|
||||
if (selection.has(p_node))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue