瀏覽代碼

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

Kacey Coley 7 年之前
父節點
當前提交
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);
                 }
             }