Bengt Ove Sannes преди 6 години
родител
ревизия
7efacc85bc
променени са 2 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 2 0
      examples/js/exporters/GLTFExporter.js
  2. 2 0
      examples/jsm/exporters/GLTFExporter.js

+ 2 - 0
examples/js/exporters/GLTFExporter.js

@@ -868,7 +868,9 @@ THREE.GLTFExporter.prototype = {
 			};
 
 			if ( map.name ) {
+
 				gltfTexture.name = map.name;
+
 			}
 
 			outputJSON.textures.push( gltfTexture );

+ 2 - 0
examples/jsm/exporters/GLTFExporter.js

@@ -892,7 +892,9 @@ GLTFExporter.prototype = {
 			};
 
 			if ( map.name ) {
+
 				gltfTexture.name = map.name;
+
 			}
 
 			outputJSON.textures.push( gltfTexture );