File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed
Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,6 @@ MergedLineGroup.prototype = {
7676
7777 }
7878
79- let forward = false ;
80-
8179 for ( let i = 0 ; i < curveElements . length ; i ++ ) {
8280
8381 let startPos = lineStartPos ;
@@ -113,28 +111,20 @@ MergedLineGroup.prototype = {
113111
114112 let points = curve . getPoints ( 50 ) ;
115113
116- if ( forward ) {
117-
118- for ( let i = 0 ; i < points . length ; i ++ ) {
114+ for ( let i = 0 ; i < points . length ; i ++ ) {
119115
120- curveLineVertices . push ( points [ i ] ) ;
121- curveLineColors . push ( new THREE . Color ( this . color ) ) ;
116+ curveLineVertices . push ( points [ i ] ) ;
117+ curveLineColors . push ( new THREE . Color ( this . color ) ) ;
122118
123- }
124-
125- } else {
126-
127- for ( let i = points . length - 1 ; i >= 0 ; i -- ) {
119+ }
128120
129- curveLineVertices . push ( points [ i ] ) ;
130- curveLineColors . push ( new THREE . Color ( this . color ) ) ;
121+ for ( let i = points . length - 1 ; i >= 0 ; i -- ) {
131122
132- }
123+ curveLineVertices . push ( points [ i ] ) ;
124+ curveLineColors . push ( new THREE . Color ( this . color ) ) ;
133125
134126 }
135127
136- forward = ! forward ;
137-
138128 }
139129
140130 return {
You can’t perform that action at this time.
0 commit comments