Răsfoiți Sursa

PLYExporter: Make exported data Blender compatible.

Mugen87 5 ani în urmă
părinte
comite
1740d6ba3f

+ 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' }`;
 
 		}