You've already forked godot
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:
committed by
Rémi Verschelde
parent
45aac0b9e9
commit
e6cee71097
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user