diff --git a/src/extras/ShapeUtils.js b/src/extras/ShapeUtils.js index 50ed1b85b0d5c21b35866ad5448452a2cf3b886a..4290ac10541c603ffaf51cfcb196ae11a2059bb6 100644 --- a/src/extras/ShapeUtils.js +++ b/src/extras/ShapeUtils.js @@ -305,7 +305,7 @@ var ShapeUtils = { if ( ( inSeg1Pt1.x !== inSeg2Pt1.x ) || ( inSeg1Pt1.y !== inSeg2Pt1.y ) ) return []; // they are distinct points - return [ inSeg1Pt1 ]; // they are the same point + return [ inSeg1Pt1 ]; // they are the same point } // segment#1 is a single point diff --git a/src/geometries/IcosahedronGeometry.js b/src/geometries/IcosahedronGeometry.js index 2f12c2e04f9e1da863ec50e8d7f99b93cc022273..00f52493272c84af089d8c80d4ba883f7dab2bd3 100644 --- a/src/geometries/IcosahedronGeometry.js +++ b/src/geometries/IcosahedronGeometry.js @@ -34,7 +34,7 @@ function IcosahedronBufferGeometry( radius, detail ) { var t = ( 1 + Math.sqrt( 5 ) ) / 2; var vertices = [ - - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0, + - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0, 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1 ]; @@ -43,7 +43,7 @@ function IcosahedronBufferGeometry( radius, detail ) { 0, 11, 5, 0, 5, 1, 0, 1, 7, 0, 7, 10, 0, 10, 11, 1, 5, 9, 5, 11, 4, 11, 10, 2, 10, 7, 6, 7, 1, 8, 3, 9, 4, 3, 4, 2, 3, 2, 6, 3, 6, 8, 3, 8, 9, - 4, 9, 5, 2, 4, 11, 6, 2, 10, 8, 6, 7, 9, 8, 1 + 4, 9, 5, 2, 4, 11, 6, 2, 10, 8, 6, 7, 9, 8, 1 ]; PolyhedronBufferGeometry.call( this, vertices, indices, radius, detail ); diff --git a/src/materials/Material.js b/src/materials/Material.js index e6e2e5ea36b26fffd4484a500d239aafee08d9a0..5b14d55eb4b3725cc5c926fdb3cccae223b9649b 100644 --- a/src/materials/Material.js +++ b/src/materials/Material.js @@ -162,7 +162,7 @@ Object.assign( Material.prototype, EventDispatcher.prototype, { if ( this.metalness !== undefined ) data.metalness = this.metalness; if ( this.emissive && this.emissive.isColor ) data.emissive = this.emissive.getHex(); - if ( this.emissiveIntensity !== 1) data.emissiveIntensity = this.emissiveIntensity; + if ( this.emissiveIntensity !== 1 ) data.emissiveIntensity = this.emissiveIntensity; if ( this.specular && this.specular.isColor ) data.specular = this.specular.getHex(); if ( this.shininess !== undefined ) data.shininess = this.shininess;