Bläddra i källkod

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

Kacey Coley 7 år sedan
förälder
incheckning
756c85fbd2
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);
                 }
             }