未验证 提交 a1d9bbf6 编写于 作者: M Mr.doob 提交者: GitHub

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

GLTFExporter: Warn when exporting Geometry
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册