Restore order

This commit is contained in:
Will McGugan
2022-04-25 11:12:44 +01:00
parent ae01567fa3
commit 05cd21fc92

View File

@@ -506,8 +506,8 @@ class Compositor:
relative_cuts = [cut - render_x for cut in final_cuts]
_, *cut_segments = divide(line, relative_cuts)
chops_line = chops[y]
# Since we are painting front to back, the first segments for a cut "wins"
chops_line = chops[y]
for cut, segments in zip(final_cuts, cut_segments):
if chops_line[cut] is None:
chops_line[cut] = segments