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 = {
76
76
77
77
}
78
78
79
- let forward = false ;
80
-
81
79
for ( let i = 0 ; i < curveElements . length ; i ++ ) {
82
80
83
81
let startPos = lineStartPos ;
@@ -113,28 +111,20 @@ MergedLineGroup.prototype = {
113
111
114
112
let points = curve . getPoints ( 50 ) ;
115
113
116
- if ( forward ) {
117
-
118
- for ( let i = 0 ; i < points . length ; i ++ ) {
114
+ for ( let i = 0 ; i < points . length ; i ++ ) {
119
115
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 ) ) ;
122
118
123
- }
124
-
125
- } else {
126
-
127
- for ( let i = points . length - 1 ; i >= 0 ; i -- ) {
119
+ }
128
120
129
- curveLineVertices . push ( points [ i ] ) ;
130
- curveLineColors . push ( new THREE . Color ( this . color ) ) ;
121
+ for ( let i = points . length - 1 ; i >= 0 ; i -- ) {
131
122
132
- }
123
+ curveLineVertices . push ( points [ i ] ) ;
124
+ curveLineColors . push ( new THREE . Color ( this . color ) ) ;
133
125
134
126
}
135
127
136
- forward = ! forward ;
137
-
138
128
}
139
129
140
130
return {
You can’t perform that action at this time.
0 commit comments