From af7e083745eaa90ebdefec83288668b9c1bfda49 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 27 Aug 2025 10:32:15 +0200 Subject: [PATCH] Fix moving (paint) cursor also emitted scene-change. This prevented slices from happening if the mouse-cursor came (even near) the model. done as part of CURA-12634 --- plugins/PaintTool/PaintTool.py | 2 +- plugins/PaintTool/PaintView.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/PaintTool/PaintTool.py b/plugins/PaintTool/PaintTool.py index abc802148e..0418d493e9 100644 --- a/plugins/PaintTool/PaintTool.py +++ b/plugins/PaintTool/PaintTool.py @@ -369,7 +369,7 @@ class PaintTool(Tool): world_coords_vec = self._picking_pass.getPickedPosition(mouse_evt.x, mouse_evt.y) self._view.setCursor(world_coords_vec, self._brush_size / 128.0, brush_color) if not self._mouse_held: - self._updateScene(node) + self._view.rerenderFull() return False if is_pressed: diff --git a/plugins/PaintTool/PaintView.py b/plugins/PaintTool/PaintView.py index 17013f6c62..253ec7148b 100644 --- a/plugins/PaintTool/PaintView.py +++ b/plugins/PaintTool/PaintView.py @@ -196,6 +196,13 @@ class PaintView(CuraView): return start_index, end_index + def rerenderFull(self): + self._renderer.beginRendering() + self.beginRendering() + self._renderer.render() + self.endRendering() + self._renderer.endRendering() + def beginRendering(self) -> None: if self._current_paint_type not in self._paint_modes: return