Browse Source

PLYExporter: Make exported data Blender compatible.

Mugen87 5 years ago
parent
commit
1740d6ba3f
2 changed files with 2 additions and 2 deletions
  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' }`;
 
 		}