Skip to content

Commit

Permalink
decompose all layers of the glyph
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Feb 29, 2024
1 parent bfa3dfe commit 4a95b27
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions UnnestComponents.glyphsFilter/Contents/Resources/plugin.py
Expand Up @@ -38,10 +38,11 @@ def settings(self):

@objc.python_method
def filter(self, layer, inEditView, customParameters):
while nestedComponents(layer):
for c in layer.components:
if c.componentLayer.components:
c.decompose()
for currLayer in layer.parent.layers:
while nestedComponents(currLayer):
for c in currLayer.components:
if c.componentLayer.components:
c.decompose()

@objc.python_method
def __file__(self):
Expand Down

0 comments on commit 4a95b27

Please sign in to comment.