Skip to content

Commit

Permalink
Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
schriftgestalt committed Oct 24, 2023
1 parent 092a7a1 commit 0a5b37d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/glyphsLib/builder/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ def to_ufo_glyph_color(self, ufo_glyph, layer, glyph, do_color_layers=True):
# add them as separate glyphs to the UFO font.

if any(
l.isColorPaletteLayer and l.associatedMasterId == layer.associatedMasterId
for l in glyph.layers
l.associatedMasterId == masterId and l.isColorPaletteLayer
for layerId, l in glyph._layers.items()
):
layerMapping = [
(l.layerId, l._color_palette_index())
for l in glyph.layers
for layerId, l in glyph._layers.items()
if l.isColorPaletteLayer
and l.associatedMasterId == layer.associatedMasterId
]
Expand Down

0 comments on commit 0a5b37d

Please sign in to comment.