Explorar el Código

GLTFExporter: Warn when exporting Geometry

Don McCurdy hace 7 años
padre
commit
4c2c33fb2b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      examples/js/exporters/GLTFExporter.js

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

@@ -1078,6 +1078,8 @@ THREE.GLTFExporter.prototype = {
 			} else {
 
 				if ( ! geometry.isBufferGeometry ) {
+					
+					console.warn( 'GLTFExporter: Exporting THREE.Geometry will increase file size. Use THREE.BufferGeometry instead.' );
 
 					var geometryTemp = new THREE.BufferGeometry();
 					geometryTemp.fromGeometry( geometry );

粤ICP备19079148号