Explorar o código

Merge pull request #19488 from nqdy666/dev

GLTFLoader: Fix ‘this’ error.
Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
ba95905515
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 );
 
 				}