Преглед изворни кода

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