Skip to content

Commit 4f133bf

Browse files
committed
Removed superfluous scope block around new code
1 parent f3d0045 commit 4f133bf

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/geometries/ExtrudeGeometry.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -440,21 +440,18 @@ class ExtrudeGeometry extends BufferGeometry {
440440
}
441441

442442
//When bevelSegments == 0, the modified vert arrays will not have been populated. We do this here.
443-
{
444443

445-
if ( contractedContourVertices.length == 0 ) {
444+
if ( contractedContourVertices.length == 0 ) {
446445

447-
contractedContourVertices.push( ...vertices );
446+
contractedContourVertices.push( ...vertices );
448447

449-
}
450-
451-
if ( expandedHoleVertices.length == 0 ) {
448+
}
452449

453-
for ( let h = 0, hl = numHoles; h < hl; h ++ ) {
450+
if ( expandedHoleVertices.length == 0 ) {
454451

455-
expandedHoleVertices.push( holes[ h ] ); //triangulateShape expects a Vec2[][], ie. an array of holes, with each hole being a Vec2[]
452+
for ( let h = 0, hl = numHoles; h < hl; h ++ ) {
456453

457-
}
454+
expandedHoleVertices.push( holes[ h ] ); //triangulateShape expects a Vec2[][], ie. an array of holes, with each hole being a Vec2[]
458455

459456
}
460457

0 commit comments

Comments
 (0)