From 6fa7cf13803b38085326772809fe38b7e702ce32 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Thu, 5 Aug 2021 09:14:27 -0700 Subject: Reset baking should not spam on lack of animation players. --- editor/import/editor_importer_bake_reset.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/import/editor_importer_bake_reset.cpp b/editor/import/editor_importer_bake_reset.cpp index 939c47faa4..541eab4f40 100644 --- a/editor/import/editor_importer_bake_reset.cpp +++ b/editor/import/editor_importer_bake_reset.cpp @@ -151,7 +151,9 @@ void BakeReset::_align_animations(AnimationPlayer *p_ap, const Map &r_rest_bones, const String &p_bake_anim) { - ERR_FAIL_NULL(p_ap); + if (!p_ap) { + return; + } List anim_names; p_ap->get_animation_list(&anim_names); Node *root = p_ap->get_owner(); -- cgit v1.2.3