Mr.doob преди 4 години
родител
ревизия
3759ffa3da
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      examples/jsm/exporters/USDZExporter.js

+ 2 - 2
examples/jsm/exporters/USDZExporter.js

@@ -39,7 +39,7 @@ class USDZExporter {
 		for ( const uuid in textures ) {
 
 			const texture = textures[ uuid ];
-			files[ 'Texture_' + texture.id + '.jpg' ] = await img2U8( texture.image );
+			files[ 'Texture_' + texture.id + '.jpg' ] = await imgToU8( texture.image );
 
 		}
 
@@ -49,7 +49,7 @@ class USDZExporter {
 
 }
 
-async function img2U8( image ) {
+async function imgToU8( image ) {
 
 	if ( ( typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement ) ||
 		( typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement ) ||