From 428faa5777aa4691dccb6cd19a86e9ec61189412 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Tue, 30 Sep 2025 09:52:19 +0200 Subject: [PATCH] Do not block rotation while painting is active CURA-12737 --- plugins/PaintTool/PaintTool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/PaintTool/PaintTool.py b/plugins/PaintTool/PaintTool.py index 07d619fde2..5730c45131 100644 --- a/plugins/PaintTool/PaintTool.py +++ b/plugins/PaintTool/PaintTool.py @@ -434,6 +434,7 @@ class PaintTool(Tool): if self._last_world_coords is None: self._last_world_coords = world_coords + event_caught = False # Propagate mouse event if only moving the cursor, not to block e.g. rotation try: brush_color = self._brush_color if self.getPaintType() != "extruder" else str(self._brush_extruder) uv_areas_cursor = self._getUvAreasForStroke(world_coords, world_coords) @@ -447,6 +448,7 @@ class PaintTool(Tool): uv_areas = self._getUvAreasForStroke(self._last_world_coords, world_coords) if len(uv_areas) == 0: return False + event_caught = True stroke_path = self._createStrokePath(uv_areas) self._view.addStroke(stroke_path, brush_color, is_moved) except: @@ -454,7 +456,7 @@ class PaintTool(Tool): self._last_world_coords = world_coords self._updateScene(node) - return True + return event_caught return False