From 4b9e12b8c0bd53f4f3ed66b475d49e0c5a294d37 Mon Sep 17 00:00:00 2001 From: Maverick Liberty Date: Fri, 1 Oct 2021 20:42:49 -0400 Subject: ResourceImporterScene: Add error when "default" is not defined to create clips --- editor/import/resource_importer_scene.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index 319e5ee25f..fe3c050283 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -988,6 +988,7 @@ Ref ResourceImporterScene::_save_animation_to_file(Ref 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; } -- cgit v1.2.3