瀏覽代碼

Fix typo from commit 7fcf5f5

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

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

@@ -921,7 +921,7 @@ export class GLTFLoader implements IGLTFLoader {
                 // The vertexData.tangent is stored as xyzw.
                 // So we need to skip every fourth vertexData.tangent.
                 if (((index + 1) % 4) !== 0) {
-                    tangents[dataIndex] = data[dataIndex] += value;
+                    tangents[dataIndex] = data[dataIndex] + value;
                     dataIndex++;
                 }
             });