Pārlūkot izejas kodu

Remove static string

Popov72 5 gadi atpakaļ
vecāks
revīzija
46e462fafa
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;