From d5f6d9e340e9d8b45975f24bcaf873aa3db61ae1 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Mon, 29 Apr 2024 07:51:21 -0500 Subject: [PATCH] Trigger rerender after masks set to panel buffer This is especially important for the polar view. The panel buffer is applied before warping, so masks being set to the polar view will change the appearance of the polar view. Signed-off-by: Patrick Avery --- hexrdgui/masking/mask_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hexrdgui/masking/mask_manager.py b/hexrdgui/masking/mask_manager.py index a567751e5..f348c263f 100644 --- a/hexrdgui/masking/mask_manager.py +++ b/hexrdgui/masking/mask_manager.py @@ -368,6 +368,8 @@ def masks_to_panel_buffer(self, selection): mask = ~np.logical_or(~mask, ~buffer_value) buffer['value'] = mask + HexrdConfig().rerender_needed.emit() + def clear_all(self): self.masks.clear()