Skip to content

Commit a10dc3f

Browse files
committed
fix merged layer relation bug
1 parent 57adbe4 commit a10dc3f

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

src/elements/MergedLineGroup.js

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)