Fix errors when files refer to now nonexistant frames
This commit is contained in:
parent
44877959ce
commit
8a3beaa9f8
|
|
@ -5949,6 +5949,8 @@ function stage() {
|
||||||
).points;
|
).points;
|
||||||
} else {
|
} else {
|
||||||
for (let child of context.selection) {
|
for (let child of context.selection) {
|
||||||
|
if (!context.activeObject.currentFrame) continue;
|
||||||
|
if (!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