Browse Source

Merge pull request #19488 from nqdy666/dev

GLTFLoader: Fix ‘this’ error.
Mr.doob 5 years ago
parent
commit
ba95905515
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/loaders/GLTFLoader.js

+ 2 - 2
examples/jsm/loaders/GLTFLoader.js

@@ -2036,9 +2036,9 @@ var GLTFLoader = ( function () {
 
 				if ( transform ) {
 
-					var gltfReference = this.associations.get( texture );
+					var gltfReference = parser.associations.get( texture );
 					texture = parser.extensions[ EXTENSIONS.KHR_TEXTURE_TRANSFORM ].extendTexture( texture, transform );
-					this.associations.set( texture, gltfReference );
+					parser.associations.set( texture, gltfReference );
 
 				}