Browse Source

ResourceImporterScene: Add error when "default" is not defined to create clips

(cherry picked from commit 4b9e12b8c0bd53f4f3ed66b475d49e0c5a294d37)
Maverick Liberty 4 years ago
parent
commit
e6cee71097
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/import/resource_importer_scene.cpp

+ 1 - 0
editor/import/resource_importer_scene.cpp

@@ -608,6 +608,7 @@ void ResourceImporterScene::_create_clips(Node *scene, const Array &p_clips, boo
 	ERR_FAIL_COND(!anim);
 	ERR_FAIL_COND(!anim);
 
 
 	if (!anim->has_animation("default")) {
 	if (!anim->has_animation("default")) {
+		ERR_FAIL_COND_MSG(p_clips.size() > 0, "To create clips, animations must be named \"default\".");
 		return;
 		return;
 	}
 	}