Pārlūkot izejas kodu

GLTFLoader: Clean up.

Mr.doob 5 gadi atpakaļ
vecāks
revīzija
ca9a1edcfa
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      examples/js/loaders/GLTFLoader.js

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

@@ -1973,9 +1973,9 @@ THREE.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 );
 
 				}