mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Fix Path._addBevelJoin() edge case
This commit is contained in:
parent
41094cd871
commit
44a7759219
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue