Reset baking should not spam on lack of animation players.

This commit is contained in:
K. S. Ernest (iFire) Lee 2021-08-05 09:14:27 -07:00
parent a544e77822
commit 6fa7cf1380

View file

@ -151,7 +151,9 @@ void BakeReset::_align_animations(AnimationPlayer *p_ap, const Map<StringName, B
}
void BakeReset::_fetch_reset_animation(AnimationPlayer *p_ap, Map<StringName, BakeResetRestBone> &r_rest_bones, const String &p_bake_anim) {
ERR_FAIL_NULL(p_ap);
if (!p_ap) {
return;
}
List<StringName> anim_names;
p_ap->get_animation_list(&anim_names);
Node *root = p_ap->get_owner();