Skip to content

Commit

Permalink
consts instead of lets
Browse files Browse the repository at this point in the history
  • Loading branch information
DefinitelyMaybe committed May 26, 2020
1 parent 7a968c3 commit db42bc5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/geometries/BoxGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ class BoxBufferGeometry extends BufferGeometry {

for ( iy = 0; iy < gridY1; iy ++ ) {

let y = iy * segmentHeight - heightHalf;
const y = iy * segmentHeight - heightHalf;

for ( ix = 0; ix < gridX1; ix ++ ) {

let x = ix * segmentWidth - widthHalf;
const x = ix * segmentWidth - widthHalf;

// set values to correct vector component

Expand Down Expand Up @@ -165,10 +165,10 @@ class BoxBufferGeometry extends BufferGeometry {

for ( ix = 0; ix < gridX; ix ++ ) {

let a = numberOfVertices + ix + gridX1 * iy;
let b = numberOfVertices + ix + gridX1 * ( iy + 1 );
let c = numberOfVertices + ( ix + 1 ) + gridX1 * ( iy + 1 );
let d = numberOfVertices + ( ix + 1 ) + gridX1 * iy;
const a = numberOfVertices + ix + gridX1 * iy;
const b = numberOfVertices + ix + gridX1 * ( iy + 1 );
const c = numberOfVertices + ( ix + 1 ) + gridX1 * ( iy + 1 );
const d = numberOfVertices + ( ix + 1 ) + gridX1 * iy;

// faces

Expand Down

0 comments on commit db42bc5

Please sign in to comment.