Fix importing from other files

This commit is contained in:
Skyler Lehmkuhl 2025-01-10 20:10:46 -05:00
parent 3b6faa0464
commit ab6f5829b6
1 changed files with 1 additions and 1 deletions

View File

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