Răsfoiți Sursa

GLTFLoader: Fix ‘this’ error.

nqdy666 5 ani în urmă
părinte
comite
a6e7747e89
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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 );
 
 				}