Explorar o código

Merge pull request #15707 from mrdoob/donmccurdy-gltfexporter-geometry-warning

GLTFExporter: Warn when exporting Geometry
Mr.doob %!s(int64=6) %!d(string=hai) anos
pai
achega
a1d9bbf6b2
Modificáronse 1 ficheiros con 2 adicións e 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 );