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

(cherry picked from commit 4b9e12b8c0)
This commit is contained in:
Maverick Liberty 2021-10-01 20:42:49 -04:00 committed by Rémi Verschelde
parent 45aac0b9e9
commit e6cee71097
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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