Merge pull request #20993 from Ultimaker/CURA-12737_model-rotation-stops-over-model-with-painting
Some checks are pending
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run

CURA-12737 model rotation stops over model with painting
This commit is contained in:
HellAholic 2025-09-30 15:50:27 +02:00 committed by GitHub
commit 1960cd1ec2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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