Fix bug where you couldn't create a drawing with no linework.

This commit is contained in:
Dion Moult
2023-02-12 13:31:42 +11:00
parent 0655d77210
commit c9bd7adf8a
@@ -521,7 +521,7 @@ class CreateDrawing(bpy.types.Operator):
# https://stackoverflow.com/questions/36018627/sorting-child-elements-with-lxml-based-on-attribute-value
group = root.find("{http://www.w3.org/2000/svg}g")
# group[:] = sorted(group, key=lambda e : "projection" in e.get("class"))
if len(group):
if group and len(group):
group[:] = reversed(group)
def canonicalise_class_name(self, name):