Fix crash when object deleted from frame

This commit is contained in:
Skyler Lehmkuhl 2025-01-17 23:19:24 -05:00
parent f168d64f95
commit 871793115f
1 changed files with 1 additions and 0 deletions

View File

@ -5949,6 +5949,7 @@ function stage() {
for (let child of context.selection) { for (let child of context.selection) {
if (!context.activeObject.currentFrame) continue; if (!context.activeObject.currentFrame) continue;
if (!context.activeObject.currentFrame.keys) continue; if (!context.activeObject.currentFrame.keys) continue;
if (!child.idx in context.activeObject.currentFrame.keys) continue;
context.activeObject.currentFrame.keys[child.idx].x += context.activeObject.currentFrame.keys[child.idx].x +=
mouse.x - context.lastMouse.x; mouse.x - context.lastMouse.x;
context.activeObject.currentFrame.keys[child.idx].y += context.activeObject.currentFrame.keys[child.idx].y +=