Przeglądaj źródła

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

Kacey Coley 7 lat temu
rodzic
commit
756c85fbd2

+ 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);
                 }
             }