|
@@ -34538,7 +34538,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
if ( ! startPoint.equals( endPoint ) ) {
|
|
if ( ! startPoint.equals( endPoint ) ) {
|
|
|
|
|
|
- this.curves.push( new LineCurve( endPoint, startPoint ) );
|
|
|
|
|
|
+ const lineType = ( startPoint.isVector2 === true ) ? 'LineCurve' : 'LineCurve3';
|
|
|
|
+ this.curves.push( new Curves[ lineType ]( endPoint, startPoint ) );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|