diff --git a/trimesh/path/exchange/svg_io.py b/trimesh/path/exchange/svg_io.py index 431c70013..c5e123bcc 100644 --- a/trimesh/path/exchange/svg_io.py +++ b/trimesh/path/exchange/svg_io.py @@ -85,7 +85,7 @@ def element_transform(e, max_depth=10): ("{*}circle", "{*}rect", "{*}line", "{*}polyline", "{*}polygon") ): shapes.append( - (shape.tag.rsplit("}", 1)[-1], shape.attrib, element_transform(element)) + (shape.tag.rsplit("}", 1)[-1], shape.attrib, element_transform(shape)) ) try: