Преглед на файлове

GLTFLoader.js : Update WebP Texture Loader (#23823)

Replace parameter 2 to parser.loadTextureImage with extension.source (it must be an index, not an object)
Gernot Ziegler преди 3 години
родител
ревизия
b1321b15b9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/jsm/loaders/GLTFLoader.js

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

@@ -1116,7 +1116,7 @@ class GLTFTextureWebPExtension {
 
 		return this.detectSupport().then( function ( isSupported ) {
 
-			if ( isSupported ) return parser.loadTextureImage( textureIndex, source, loader );
+			if ( isSupported ) return parser.loadTextureImage( textureIndex, extension.source, loader );
 
 			if ( json.extensionsRequired && json.extensionsRequired.indexOf( name ) >= 0 ) {