Skip to content

Commit 456245f

Browse files
authored
Merge pull request #641 from EarthyScience/jp/cancel-anim-export
one-liner
2 parents 6aeb90f + b584843 commit 456245f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/utils/ExportCanvas.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ const ExportCanvas = ({show}:{show: boolean}) => {
309309
}
310310
SetCamera(true);
311311
if (animate){
312+
usePlotStore.setState({animate:false}) // Disable animation if currently active
312313
const {keyFrames} = useImageExportStore.getState()
313314
const keyFrameList = keyFrames ? Array.from(keyFrames.keys()).sort((a, b) => a - b) : null;
314315
async function Animate(){

0 commit comments

Comments
 (0)