From 9c4c6e4c4feac786be69c8f18425c5d3258cfcf4 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 2 Feb 2016 19:04:45 -0300 Subject: -fix path clear in animation call param, closes #3448 --- tools/editor/animation_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3