Merge pull request #1826 from hallatore/Bug_BezierCurveAtZero

Fixed bug with bezier still being used with tension set to 0
This commit is contained in:
Evert Timberg
2015-12-23 09:39:21 -05:00

View File

@@ -37,6 +37,8 @@
skipHandler.call(this, previousPoint, point, nextPoint);
} else if (previousPoint._view.skip) {
previousSkipHandler.call(this, previousPoint, point, nextPoint);
} else if (point._view.tension === 0) {
ctx.lineTo(point._view.x, point._view.y);
} else {
// Line between points
ctx.bezierCurveTo(