Prechádzať zdrojové kódy

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

Fix glTF loader to default animation sampler interpolation to LINEAR
David Catuhe 7 rokov pred
rodič
commit
f82195be8d

+ 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": {