2
0
Эх сурвалжийг харах

Merge pull request #19488 from nqdy666/dev

GLTFLoader: Fix ‘this’ error.
Mr.doob 5 жил өмнө
parent
commit
ba95905515

+ 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 );
 
 				}