1
0
Fork 0

fix(core): Fix Path.join() to work with noop

This commit is contained in:
Benjamin F 2022-12-23 15:34:18 -08:00
parent acb9b0d10e
commit 65895713c4

View file

@ -1202,6 +1202,8 @@ function __joinPaths(paths, closed = false) {
for (let op of p.ops) {
if (op.type === 'curve') {
joint.curve(op.cp1, op.cp2, op.to)
} else if (op.type === 'noop') {
joint.noop(op.id)
} else if (op.type !== 'close') {
// We're using sitsRoughlyOn here to avoid miniscule line segments
if (current && !op.to.sitsRoughlyOn(current)) joint.line(op.to)