Browse Source

-fix path clear in animation call param, closes #3448

Juan Linietsky 9 years ago
parent
commit
9c4c6e4c4f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tools/editor/animation_editor.cpp

+ 3 - 0
tools/editor/animation_editor.cpp

@@ -262,6 +262,9 @@ public:
 
 
 		NodePath np=value;
 		NodePath np=value;
 
 
+		if (np==NodePath())
+			return;
+
 		Node* root = EditorNode::get_singleton()->get_tree()->get_root();
 		Node* root = EditorNode::get_singleton()->get_tree()->get_root();
 
 
 		Node* np_node = root->get_node(np);
 		Node* np_node = root->get_node(np);