Fix import issue

This commit is contained in:
Skyler Lehmkuhl 2025-01-12 13:40:08 -05:00
parent b5bc4c2a40
commit 9dff8d7bee
1 changed files with 2 additions and 1 deletions

View File

@ -2175,7 +2175,8 @@ class Layer extends Widget {
layer.frames = [];
for (let i in json.frames) {
const frame = json.frames[i];
if (frame && frame.frameType=="keyframe") {
if (!frame) continue;
if (frame.frameType=="keyframe") {
layer.frames.push(Frame.fromJSON(frame));
} else {
if (layer.frames[layer.frames.length-1]) {