浏览代码

Fix glTF loader to default animation sampler interpolation to LINEAR

Gary Hsu 7 年之前
父节点
当前提交
d2bfc9bb7a
共有 1 个文件被更改,包括 2 次插入0 次删除
  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": {