ResourceImporterScene: Add error when "default" is not defined to create clips
(cherry picked from commit 4b9e12b8c0
)
This commit is contained in:
parent
45aac0b9e9
commit
e6cee71097
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue