Przeglądaj źródła

Reset baking should not spam on lack of animation players.

K. S. Ernest (iFire) Lee 4 lat temu
rodzic
commit
6fa7cf1380
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      editor/import/editor_importer_bake_reset.cpp

+ 3 - 1
editor/import/editor_importer_bake_reset.cpp

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