GSLayer.decomposeComponents is not recursive

Using the Python API, GSLayer.decomposeComponents decomposes components on a given layer. In Glyphs 2 this would happen recursively, such that no component is on the layer after the operation. In Glyphs 3 the operation is shallow.

I can simulate the old behavior with

while len(somelayer.components) > 0:

Is this a bug and the old behavior will be restored in a future version or is this change intentional?

I tend to think it was not intentional. Thank you for reporting.

This should be fixed and working, now. As of beta 3.0.2 (3043), I believe. fyi.

Already tested and, yes, it work flawlessly. Thank you!

1 Like