From 30f9dc368eaeaf0df5c2fdfe388aef44b7e70dba Mon Sep 17 00:00:00 2001 From: skylartaylor Date: Mon, 23 Nov 2026 23:38:09 +0100 Subject: [PATCH] Mask overlay opacity keeps whole percents on the new framework base --- crates/ui-egui/src/panels/masking.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/src/panels/masking.rs b/crates/ui-egui/src/panels/masking.rs index bb0add84b1..5fa86352c1 100644 --- a/crates/ui-egui/src/panels/masking.rs +++ b/crates/ui-egui/src/panels/masking.rs @@ -860,6 +860,8 @@ fn overlay_options(app: &mut LightcraftApp, ui: &mut egui::Ui) { .unit("%") .snap_typed(true) .fixed_decimals(0) + // (next shows percent fields with one decimal unless the field's own decimals are asked to win) + .exact_decimals(true) .commit_decimals(0) .enabled(real && enabled) .show_at(ui, value_rect);