Fix export of single non-linear keyframes

This commit is contained in:
JannisX11 2021-05-16 23:49:59 +02:00
parent 4803d7efd9
commit ce62851324

View File

@ -169,7 +169,7 @@ class Animation {
for (var channel in Animator.possible_channels) {
if (channels[channel]) {
let timecodes = Object.keys(channels[channel])
if (timecodes.length === 1 && animator[channel][0].data_points.length == 1) {
if (timecodes.length === 1 && animator[channel][0].data_points.length == 1 && animator[channel][0].interpolation == 'linear') {
bone_tag[channel] = channels[channel][timecodes[0]]
if (channel == 'scale' &&
channels[channel][timecodes[0]] instanceof Array &&