浏览代码

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

Juan Linietsky 9 年之前
父节点
当前提交
9c4c6e4c4f
共有 1 个文件被更改,包括 3 次插入0 次删除
  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);