فهرست منبع

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

GLTFExporter: Warn when exporting Geometry
Mr.doob 6 سال پیش
والد
کامیت
a1d9bbf6b2
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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 );