Fix timeline collapse on import

This commit is contained in:
Skyler Lehmkuhl 2025-01-12 14:39:07 -05:00
parent 7b8d3d074b
commit 8c2e5011bb
1 changed files with 4 additions and 1 deletions

View File

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