fix: Update asset animation state handling to ensure correct playback status

This commit is contained in:
2025-07-04 14:02:44 +05:30
parent 02490214d9
commit ff02f01430
2 changed files with 6 additions and 10 deletions

View File

@@ -182,8 +182,10 @@ export const createAssetStore = () => {
set((state) => {
const asset = state.assets.find(a => a.modelUuid === modelUuid);
if (asset?.animationState) {
asset.animationState = { current: '', isPlaying: false, loopAnimation: true, isCompleted: true };
}
asset.animationState.current = '';
asset.animationState.isPlaying = true;
asset.animationState.loopAnimation = true;
asset.animationState.isCompleted = true; }
});
},