From ecbf7a06fb9c29a6b5a39b83c4021202aca73adf Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Thu, 8 Apr 2021 22:58:17 +0200 Subject: [PATCH] Added LPE handling for bezier envelope --- extensions/fablabchemnitz/bezierenvelope.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/fablabchemnitz/bezierenvelope.py b/extensions/fablabchemnitz/bezierenvelope.py index f35d152c..ecaa6725 100644 --- a/extensions/fablabchemnitz/bezierenvelope.py +++ b/extensions/fablabchemnitz/bezierenvelope.py @@ -84,6 +84,10 @@ class BezierEnvelope(inkex.EffectExtension): letterElement = self.svg.selected[self.options.ids[0]] envelopeElement = self.svg.selected[self.options.ids[1]] + if letterElement.get('inkscape:original-d') or envelopeElement.get('inkscape:original-d'): + raise Exception("One or both selected paths have attribute 'inkscape:original-d' which points to Live Path Effects (LPE). Please convert to regular path.") + exit() + if letterElement.tag != inkex.addNS('path','svg') or envelopeElement.tag != inkex.addNS('path','svg'): raise Exception("Both letter and envelope must be SVG paths.") exit()