소스 검색

Fix make sub-resource crash in AnimationTreeEditor

(cherry picked from commit 274ed822836b435ab7d5f66b20526f9da18105d7)
Haoyu Qiu 4 년 전
부모
커밋
e7b67fe8ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/plugins/animation_tree_editor_plugin.cpp

+ 1 - 1
editor/plugins/animation_tree_editor_plugin.cpp

@@ -55,7 +55,7 @@ void AnimationTreeEditor::edit(AnimationTree *p_tree) {
 	tree = p_tree;
 
 	Vector<String> path;
-	if (tree->has_meta("_tree_edit_path")) {
+	if (tree && tree->has_meta("_tree_edit_path")) {
 		path = tree->get_meta("_tree_edit_path");
 		edit_path(path);
 	} else {