Fix Path._addBevelJoin() edge case

This commit is contained in:
Jürg Lehni 2019-06-10 16:02:39 +02:00
parent 41094cd871
commit 44a7759219

View file

@ -2846,8 +2846,9 @@ statics: {
normal1 = curve1.getNormalAtTime(1).multiply(radius)
.transform(strokeMatrix),
normal2 = curve2.getNormalAtTime(0).multiply(radius)
.transform(strokeMatrix);
if (normal1.getDirectedAngle(normal2) < 0) {
.transform(strokeMatrix),
angle = normal1.getDirectedAngle(normal2);
if (angle < 0 || angle >= 180) {
normal1 = normal1.negate();
normal2 = normal2.negate();
}