瀏覽代碼

Remove static string

Popov72 5 年之前
父節點
當前提交
46e462fafa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      loaders/src/glTF/2.0/glTFLoader.ts

+ 1 - 1
loaders/src/glTF/2.0/glTFLoader.ts

@@ -866,7 +866,7 @@ export class GLTFLoader implements IGLTFLoader {
             const accessor = ArrayItem.Get(`${context}/attributes/${attribute}`, this._gltf.accessors, attributes[attribute]);
             promises.push(this._loadVertexAccessorAsync(`/accessors/${accessor.index}`, accessor, kind).then((babylonVertexBuffer) => {
                 babylonGeometry.setVerticesBuffer(babylonVertexBuffer, accessor.count);
-                if (babylonVertexBuffer.getKind() === "position") {
+                if (babylonVertexBuffer.getKind() === VertexBuffer.PositionKind) {
                     postProcesses.push(() => {
                         const min = TmpVectors.Vector3[0], max = TmpVectors.Vector3[1];
                         let recomputeBoundingInfo = true;