Alexander Rose 2 years ago
parent
commit
5798f20c41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/mol-plugin-state/animation/built-in/model-index.ts

+ 2 - 2
src/mol-plugin-state/animation/built-in/model-index.ts

@@ -126,9 +126,9 @@ export const AnimateModelIndex = PluginStateAnimation.create({
 
                     if (params.mode.name === 'once' && t.current >= durationInMs) {
                         isEnd = true;
-                        return { modelIndex: traj.data.frameCount-1 };
+                        return { modelIndex: traj.data.frameCount - 1 };
                     }
-                    
+
                     let phase: number = (t.current % durationInMs) / durationInMs;
                     if (params.mode.name === 'loop') {
                         if (params.mode.params.direction === 'backward') {