Pārlūkot izejas kodu

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

Juan Linietsky 9 gadi atpakaļ
vecāks
revīzija
9c4c6e4c4f
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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);