don't throw exception on failure to remove animation component

This commit is contained in:
Nick Fisher committed 2025-05-31 21:58:32 +08:00
1 parent afecacfcf0
commit 4fb85eb45a
1 file changed
+2 -2
@@ -1057,11 +1057,11 @@ class FFIAsset extends ThermionAsset {
Future removeAnimationComponent() async {
if (!AnimationManager_removeGltfAnimationComponent(
animationManager, asset)) {
throw Exception("Failed to remove glTF animation component");
_logger.warning("Failed to remove glTF animation component");
}
if (!AnimationManager_removeBoneAnimationComponent(
animationManager, asset)) {
throw Exception("Failed to remove bone animation component");
_logger.warning("Failed to remove bone animation component");
}
AnimationManager_removeMorphAnimationComponent(animationManager, entity);