You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Prevent to add node to selection when node is not inside tree
(cherry picked from commit 4857eabddb)
This commit is contained in:
@@ -834,7 +834,7 @@ void EditorSelection::_node_removed(Node *p_node) {
|
|||||||
void EditorSelection::add_node(Node *p_node) {
|
void EditorSelection::add_node(Node *p_node) {
|
||||||
|
|
||||||
ERR_FAIL_NULL(p_node);
|
ERR_FAIL_NULL(p_node);
|
||||||
|
ERR_FAIL_COND(!p_node->is_inside_tree());
|
||||||
if (selection.has(p_node))
|
if (selection.has(p_node))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user