[cu2qu.ufo] Try to be smarter about "modified"
This commit is contained in:
parent
f53901d3f4
commit
1f2a8b7d27
@ -185,8 +185,10 @@ def _glyphs_to_quadratic(glyphs, max_err, reverse_direction, stats, all_quadrati
|
|||||||
if not all(s[0] == tag for s in segments[1:]):
|
if not all(s[0] == tag for s in segments[1:]):
|
||||||
incompatible[i] = [s[0] for s in segments]
|
incompatible[i] = [s[0] for s in segments]
|
||||||
elif tag == "curve":
|
elif tag == "curve":
|
||||||
segments = _segments_to_quadratic(segments, max_err, stats, all_quadratic)
|
new_segments = _segments_to_quadratic(segments, max_err, stats, all_quadratic)
|
||||||
glyphs_modified = True
|
if all_quadratic or new_segments != segments:
|
||||||
|
glyphs_modified = True
|
||||||
|
segments = new_segments
|
||||||
new_segments_by_location.append(segments)
|
new_segments_by_location.append(segments)
|
||||||
|
|
||||||
if glyphs_modified:
|
if glyphs_modified:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user