summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-10 10:42:20 +0100
committerGitHub <noreply@github.com>2021-12-10 10:42:20 +0100
commitdb70957a5ffdbf6b1ea3aee8dd399581be9d1f01 (patch)
tree5ba763e57c0f696e980d6e8a8bba69ee62cc55b5
parent3c448437f6db5f3c4bb7700fbbd1f8fd741eb0c6 (diff)
parent4b9e12b8c0bd53f4f3ed66b475d49e0c5a294d37 (diff)
Merge pull request #53323 from xMakerx/patch-1
-rw-r--r--editor/import/resource_importer_scene.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp
index 330c7125fe..c7eb6181ba 100644
--- a/editor/import/resource_importer_scene.cpp
+++ b/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;
}