Better handling of group if/elif case

pull/175/head
Windell Oskay 2020-12-23 16:29:03 -08:00
rodzic ef7936bf16
commit e7bc7201e6
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -521,12 +521,10 @@ class EggBot(inkex.Effect):
if not self.allLayers:
self.DoWePlotLayer(self.sCurrentLayerName)
self.recursivelyTraverseSvg(node, mat_new, parent_visibility=v)
continue
if node.tag in [inkex.addNS('switch', 'svg'), 'switch']:
elif node.tag in [inkex.addNS('switch', 'svg'), 'switch']:
# Treat switch as a container element to plot
self.penUp()
self.recursivelyTraverseSvg(node, mat_new, parent_visibility=v)
continue
elif node.tag in [inkex.addNS('use', 'svg'), 'use']:
# A <use> element refers to another SVG element via an xlink:href="#blah"