From 871793115faa3fd7ccd6fe70304eb26289b321eb Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Fri, 17 Jan 2025 23:19:24 -0500 Subject: [PATCH] Fix crash when object deleted from frame --- src/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.js b/src/main.js index 2c6f969..8abf49d 100644 --- a/src/main.js +++ b/src/main.js @@ -5949,6 +5949,7 @@ function stage() { for (let child of context.selection) { if (!context.activeObject.currentFrame) continue; if (!context.activeObject.currentFrame.keys) continue; + if (!child.idx in context.activeObject.currentFrame.keys) continue; context.activeObject.currentFrame.keys[child.idx].x += mouse.x - context.lastMouse.x; context.activeObject.currentFrame.keys[child.idx].y +=