Skip to content

Commit b5b0143

Browse files
committed
Ensure our list of color layer is the same as we use when we rename glyphs
1 parent ae08b26 commit b5b0143

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/glyphsLib/builder/components.py

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def to_ufo_components(self, ufo_glyph, layer):
5858
component_glyph = font.glyphs[component_name]
5959
color_layers = [
6060
l for l in component_glyph.layers if l._is_color_palette_layer()
61+
and l.associatedMasterId == layer.associatedMasterId
6162
]
6263
for i, l in enumerate(color_layers):
6364
if l._color_palette_index() == layer._color_palette_index():

0 commit comments

Comments
 (0)