From 2ce75df4d0914895b420ad0654b0b2f53d79d98c Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Fri, 10 Jan 2025 19:22:14 -0500 Subject: [PATCH] Fix selection on later frames --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 2b190ed..62a4664 100644 --- a/src/main.js +++ b/src/main.js @@ -2615,7 +2615,8 @@ class Layer extends Widget { bbox() { let bbox = super.bbox() const frameInfo = this.getFrameValue(this.frameNum); - const frame = frameInfo.valueAtN + // TODO: if there are multiple layers we should only be counting valid frames + const frame = frameInfo.valueAtN ? frameInfo.valueAtN : frameInfo.prev if (!frame) return bbox; if (frame.shapes.length > 0 && bbox == undefined) { bbox = structuredClone(frame.shapes[0].boundingBox);