浏览代码

PLYExporter: Make exported data Blender compatible.

Mugen87 5 年之前
父节点
当前提交
1740d6ba3f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/js/exporters/PLYExporter.js
  2. 1 1
      examples/jsm/exporters/PLYExporter.js

+ 1 - 1
examples/js/exporters/PLYExporter.js

@@ -537,7 +537,7 @@ THREE.PLYExporter.prototype = {
 
 			} );
 
-			result = `${ header }${vertexList}\n${ includeIndices ? `${faceList}\n` : '' }`;
+			result = `${ header }${vertexList}${ includeIndices ? `${faceList}\n` : '\n' }`;
 
 		}
 

+ 1 - 1
examples/jsm/exporters/PLYExporter.js

@@ -543,7 +543,7 @@ PLYExporter.prototype = {
 
 			} );
 
-			result = `${ header }${vertexList}\n${ includeIndices ? `${faceList}\n` : '' }`;
+			result = `${ header }${vertexList}${ includeIndices ? `${faceList}\n` : '\n' }`;
 
 		}