Fix crash when object deleted from frame
This commit is contained in:
parent
f168d64f95
commit
871793115f
|
|
@ -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 +=
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue