We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
closePath()
1 parent 083be57 commit 5c00457Copy full SHA for 5c00457
src/extras/core/CurvePath.js
@@ -33,7 +33,8 @@ class CurvePath extends Curve {
33
34
if ( ! startPoint.equals( endPoint ) ) {
35
36
- this.curves.push( new Curves[ 'LineCurve' ]( endPoint, startPoint ) );
+ const lineType = ( startPoint.isVector2 === true ) ? 'LineCurve' : 'LineCurve3';
37
+ this.curves.push( new Curves[ lineType ]( endPoint, startPoint ) );
38
39
}
40
0 commit comments