mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-02-26 22:35:46 -07:00
Merge pull request #20993 from Ultimaker/CURA-12737_model-rotation-stops-over-model-with-painting
CURA-12737 model rotation stops over model with painting
This commit is contained in:
commit
1960cd1ec2
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue