aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-30 13:02:34 -0400
committerbobzel <zzzman@gmail.com>2020-10-30 13:02:34 -0400
commite65c32301dc99268a4f0746581ef70fef0077a0a (patch)
treeb7df6902b3fcc81c4afa3d86cd5a559cf9d730e3 /src
parentc57cb369f8bd15a274e0a399d84a7f894fa11161 (diff)
fixed bookmarked views to not break when there's no current frame. (caused the bug with the large bookmark icon after having created and invoked a previous bookmark icon)
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionMenu.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionMenu.tsx b/src/client/views/collections/CollectionMenu.tsx
index 338b067fa..b44b85183 100644
--- a/src/client/views/collections/CollectionMenu.tsx
+++ b/src/client/views/collections/CollectionMenu.tsx
@@ -1324,5 +1324,5 @@ Scripting.addGlobal(function gotoFrame(doc: any, newFrame: any) {
CollectionFreeFormDocumentView.setupKeyframes(childDocs, 0);
}
CollectionFreeFormDocumentView.updateKeyframe(childDocs, currentFrame || 0);
- doc._currentFrame = Math.max(0, newFrame);
+ doc._currentFrame = newFrame === undefined ? 0 : Math.max(0, newFrame);
});