1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-07 19:53:17 +00:00

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

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;
}