[interpolatable] Don't continue test if open contours

This commit is contained in:
Behdad Esfahbod 2023-11-30 23:29:37 -05:00
parent 7993bad2c4
commit c984acc070

View File

@ -191,9 +191,11 @@ def test_gen(
) )
continue continue
has_open = False
for ix, open in enumerate(glyph.openContours): for ix, open in enumerate(glyph.openContours):
if not open: if not open:
continue continue
has_open = True
yield ( yield (
glyph_name, glyph_name,
{ {
@ -203,6 +205,8 @@ def test_gen(
"type": "open_path", "type": "open_path",
}, },
) )
if has_open:
continue
matchings = [None] * len(glyphsets) matchings = [None] * len(glyphsets)