From 4fb85eb45aa879c49f9b507fd8310c01883062fb Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 31 May 2025 21:58:32 +0800 Subject: [PATCH] don't throw exception on failure to remove animation component --- .../lib/src/filament/src/implementation/ffi_asset.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thermion_dart/lib/src/filament/src/implementation/ffi_asset.dart b/thermion_dart/lib/src/filament/src/implementation/ffi_asset.dart index 1183d2b7..54b6ec50 100644 --- a/thermion_dart/lib/src/filament/src/implementation/ffi_asset.dart +++ b/thermion_dart/lib/src/filament/src/implementation/ffi_asset.dart @@ -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);