From ee824f37fd6afff1dd29daf5779a8ebbae1d8a85 Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Wed, 2 Dec 2026 12:51:08 +0700 Subject: [PATCH] LR-MASK-BRUSH: the Lens Blur brush preview keeps an Auto Mask stroke's V15 accumulation (review) --- crates/ui-egui/src/panels/detail/lens_blur.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/detail/lens_blur.rs b/crates/ui-egui/src/panels/detail/lens_blur.rs index 765fc8289a..171d10e799 100644 --- a/crates/ui-egui/src/panels/detail/lens_blur.rs +++ b/crates/ui-egui/src/panels/detail/lens_blur.rs @@ -122,9 +122,10 @@ pub(super) fn lens_blur_brush_overlay(app: &mut LightcraftApp, ui: &mut egui::Ui hard: r * (1.0 - (app.ui.brush_feather / 100.0).clamp(0.0, 1.0)), flow: (app.ui.brush_flow / 100.0).clamp(0.0, 1.0), density: (app.ui.lens_blur_brush_amount / 100.0).clamp(0.0, 1.0), - // (its strokes render as a mask brush does: Flow per radius travelled from V15, the edge by stroke from V16) + // (its strokes render as a mask brush does: Flow per radius travelled from V15, the edge by stroke from V16, + // except an Auto Mask stroke, which keeps V15's accumulation as the committed one does) per_radius: lightcraft_pipeline::masks::flow_per_radius(d), - by_stroke: lightcraft_pipeline::masks::stroke_feather(d), + by_stroke: lightcraft_pipeline::masks::stroke_feather(d) && !app.ui.brush_auto_mask, color: if focus { [70, 200, 120] } else { [230, 70, 70] }, opacity: 0.45, };