diff options
Diffstat (limited to 'share')
| -rw-r--r-- | share/extensions/hpgl_encoder.py | 11 | ||||
| -rw-r--r-- | share/extensions/plotter.py | 2 |
2 files changed, 5 insertions, 8 deletions
diff --git a/share/extensions/hpgl_encoder.py b/share/extensions/hpgl_encoder.py index 7623751b6..f6ad13f60 100644 --- a/share/extensions/hpgl_encoder.py +++ b/share/extensions/hpgl_encoder.py @@ -159,13 +159,10 @@ class hpglEncoder: def process_path(self, node, mat): # process path - drawing = node.get('d') - if drawing: - # transform path - paths = cubicsuperpath.parsePath(drawing) - trans = node.get('transform') - if trans: - mat = simpletransform.composeTransform(mat, simpletransform.parseTransform(trans)) + paths = node.get('d') + if paths: + # parse and transform path + paths = cubicsuperpath.parsePath(paths) simpletransform.applyTransformToPath(mat, paths) cspsubdiv.cspsubdiv(paths, self.options.flat) # path to HPGL commands diff --git a/share/extensions/plotter.py b/share/extensions/plotter.py index 6cc235228..427e9401b 100644 --- a/share/extensions/plotter.py +++ b/share/extensions/plotter.py @@ -29,7 +29,7 @@ import inkex inkex.localize() -# TODO: Unittests, Material feed after plot, plot rectangles and circles (convert to paths), maybe interpret layers as pens +# TODO: Unittests class MyEffect(inkex.Effect): def __init__(self): |
