[interpolatable] Minor tweak

This commit is contained in:
Behdad Esfahbod 2023-12-02 08:31:39 -05:00
parent 2e764bf179
commit ef90c377d1

View File

@ -350,23 +350,22 @@ def test_gen(
glyph0, glyph1, ix, tolerance, matching
)
if proposed_point or reverse:
if this_tolerance < tolerance:
yield (
glyph_name,
{
"type": "wrong_start_point",
"contour": ix,
"master_1": names[m0idx],
"master_2": names[m1idx],
"master_1_idx": m0idx,
"master_2_idx": m1idx,
"value_1": 0,
"value_2": proposed_point,
"reversed": reverse,
"tolerance": this_tolerance,
},
)
if this_tolerance < tolerance:
yield (
glyph_name,
{
"type": "wrong_start_point",
"contour": ix,
"master_1": names[m0idx],
"master_2": names[m1idx],
"master_1_idx": m0idx,
"master_2_idx": m1idx,
"value_1": 0,
"value_2": proposed_point,
"reversed": reverse,
"tolerance": this_tolerance,
},
)
else:
# Weight check.
#