Explorar o código

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

Juan Linietsky %!s(int64=9) %!d(string=hai) anos
pai
achega
9c4c6e4c4f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      tools/editor/animation_editor.cpp

+ 3 - 0
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);