Explorar o código

Merge pull request #3506 from bghgary/small-bug-fix

Fix glTF loader to default animation sampler interpolation to LINEAR
David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
f82195be8d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      loaders/src/glTF/2.0/babylon.glTFLoader.ts

+ 2 - 0
loaders/src/glTF/2.0/babylon.glTFLoader.ts

@@ -1043,6 +1043,8 @@ module BABYLON.GLTF2 {
                     }
                 }
 
+                sampler.interpolation = sampler.interpolation || "LINEAR";
+
                 let getNextKey: (frameIndex: number) => any;
                 switch (sampler.interpolation) {
                     case "LINEAR": {