Merge pull request #51285 from V-Sekai/reset-anim-spam

Reset baking should not spam on lack of animation players.
This commit is contained in:
K. S. Ernest (iFire) Lee 2021-08-05 13:17:18 -04:00 committed by GitHub
commit d393708e75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();