Fix timeline collapse on import
This commit is contained in:
parent
7b8d3d074b
commit
8c2e5011bb
|
|
@ -2175,7 +2175,10 @@ class Layer extends Widget {
|
|||
layer.frames = [];
|
||||
for (let i in json.frames) {
|
||||
const frame = json.frames[i];
|
||||
if (!frame) continue;
|
||||
if (!frame) {
|
||||
layer.frames.push(undefined)
|
||||
continue;
|
||||
}
|
||||
if (frame.frameType=="keyframe") {
|
||||
layer.frames.push(Frame.fromJSON(frame));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue