fix: Update asset animation state handling to ensure correct playback status
This commit is contained in:
@@ -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; }
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user