Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/js/exporters/PLYExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ THREE.PLYExporter.prototype = {
var includeNormals = false;
var includeColors = false;
var includeUVs = false;
var includeIndices = true;

// count the vertices, check which properties are used,
// and cache the BufferGeometry
Expand Down Expand Up @@ -123,10 +122,10 @@ THREE.PLYExporter.prototype = {

} );

var includeIndices = excludeAttributes.indexOf( 'index' ) === - 1;
includeNormals = includeNormals && excludeAttributes.indexOf( 'normal' ) === - 1;
includeColors = includeColors && excludeAttributes.indexOf( 'color' ) === - 1;
includeUVs = includeUVs && excludeAttributes.indexOf( 'uv' ) === - 1;
includeIndices = includeIndices && excludeAttributes.indexOf( 'index' ) === - 1;


if ( includeIndices && faceCount !== Math.floor( faceCount ) ) {
Expand Down