Color Wheel: the contrast cache keys on tool_paints, which replaced bucket_paints

#9100 replaced Session::bucket_paints with tool_paints(stroke), and #7718's
contrast cache key still called bucket_paints, so main stopped compiling.
The key now records whether the active tool paints with the proxy in front,
the paint color.contrast measures.
This commit is contained in:
bflatastic
2026-11-26 09:07:33 +07:00
parent a54d28887c
commit c71817638b
+1 -1
View File
@@ -927,7 +927,7 @@ fn ratio_answer(app: &mut VectorcraftApp, panel: &mut WheelUi, pinned: Option<Co
black_on_screen: app.session.prefs.black_on_screen.clone(),
under: under(),
mesh_points: app.session.fill_mesh_points(),
bucket: app.session.bucket_paints(),
bucket: app.session.tool_paints(!app.session.fill_active),
};
match &panel.ratio {
Some((k, r)) if *k == key => r.clone(),