Sfoglia il codice sorgente

Merge pull request #53323 from xMakerx/patch-1

Rémi Verschelde 3 anni fa
parent
commit
db70957a5f
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      editor/import/resource_importer_scene.cpp

+ 1 - 0
editor/import/resource_importer_scene.cpp

@@ -1015,6 +1015,7 @@ Ref<Animation> ResourceImporterScene::_save_animation_to_file(Ref<Animation> ani
 
 void ResourceImporterScene::_create_clips(AnimationPlayer *anim, const Array &p_clips, bool p_bake_all) {
 	if (!anim->has_animation("default")) {
+		ERR_FAIL_COND_MSG(p_clips.size() > 0, "To create clips, animations must be named \"default\".");
 		return;
 	}