Browse Source

Merge pull request #6366 from bghgary/fix-typo

Fix typo from earlier commit
David Catuhe 6 years ago
parent
commit
28debfe316
1 changed files with 1 additions and 1 deletions
  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++;
                 }
             });