diff options
author | volzhs <volzhs@gmail.com> | 2016-08-24 02:19:48 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2016-08-27 23:16:41 +0900 |
commit | 4857eabddb3eda7fef9ee3740a0325265209c640 (patch) | |
tree | 7fe3a4e7856b082dda6962c983e807f7fb45b181 /tools/editor | |
parent | 2cf781d3c66cbc53739ff91d4608ac979ae17262 (diff) |
Prevent to add node to selection when node is not inside tree
Diffstat (limited to 'tools/editor')
-rw-r--r-- | tools/editor/editor_data.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_data.cpp b/tools/editor/editor_data.cpp index 8d3fd6c9c2..35ec1ebfcc 100644 --- a/tools/editor/editor_data.cpp +++ b/tools/editor/editor_data.cpp @@ -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; |