Fix import of single non-linear keyframes

This commit is contained in:
JannisX11 2020-11-08 11:19:38 +01:00
parent 629c118856
commit c7822204b7

View File

@ -1427,6 +1427,13 @@ const Animator = {
channel,
data_points: getKeyframeDataPoints(b[channel]),
})
} else if (typeof b[channel] === 'object' && b[channel].post) {
ba.addKeyframe({
time: 0,
channel,
interpolation: b[channel].lerp_mode,
data_points: getKeyframeDataPoints(b[channel]),
});
} else if (typeof b[channel] === 'object') {
for (var timestamp in b[channel]) {
ba.addKeyframe({