From b97526b8d23f3c968012f4880f33701f32fc455b Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Tue, 21 Feb 2023 13:42:20 -0500 Subject: [PATCH] Fix Path vs. CompoundPath Otherwise, it will strip out the move commands and make paths be continuous even tho they shouldn't be. Co-authored-by: Jakob Guddas --- plugins/simplifyPaths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/simplifyPaths.js b/plugins/simplifyPaths.js index 8989ed98b..5d6457bdd 100644 --- a/plugins/simplifyPaths.js +++ b/plugins/simplifyPaths.js @@ -96,7 +96,7 @@ exports.fn = (_root, params) => { path ); } else if (node.name === 'path') { - const path = new paper.Path(node.attributes.d); + const path = new paper.CompoundPath(node.attributes.d); node.attributes.d = simplify( pathParams.simplifyThreshold, floatPrecision,