Просмотр исходного кода

fall back to baking if animation type is not linear, cubic spline or step

Kacey Coley 7 лет назад
Родитель
Сommit
756c85fbd2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      serializers/src/glTF/2.0/babylon.glTFAnimation.ts

+ 1 - 1
serializers/src/glTF/2.0/babylon.glTFAnimation.ts

@@ -99,7 +99,7 @@ module BABYLON.GLTF2 {
                     _GLTFAnimation._CreateCubicSplineAnimation(babylonMesh, animation, animationChannelTargetPath, frameDelta, inputs, outputs, convertToRightHandedSystem, useQuaternion);
                 }
                 else {
-                    Tools.Error('Unsupported animation interpolation type!');
+                    _GLTFAnimation._CreateBakedAnimation(babylonMesh, animation, animationChannelTargetPath, minMaxKeyFrames.min, minMaxKeyFrames.max, animation.framePerSecond, animationSampleRate, inputs, outputs, minMaxKeyFrames, convertToRightHandedSystem, useQuaternion);
                 }
             }