summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-02-02 19:04:45 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-02-02 19:04:45 -0300
commit9c4c6e4c4feac786be69c8f18425c5d3258cfcf4 (patch)
tree0a2ee3b96f78667ec8b849720be0c691d31143b8 /tools/editor
parent857edbea1ce30b9a0aecb7aa6082e263b41e393f (diff)
-fix path clear in animation call param, closes #3448
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/animation_editor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/animation_editor.cpp b/tools/editor/animation_editor.cpp
index 79a9677edd..dfb09e38fc 100644
--- a/tools/editor/animation_editor.cpp
+++ b/tools/editor/animation_editor.cpp
@@ -262,6 +262,9 @@ public:
NodePath np=value;
+ if (np==NodePath())
+ return;
+
Node* root = EditorNode::get_singleton()->get_tree()->get_root();
Node* np_node = root->get_node(np);