Commit Graph

12881 Commits

Author SHA1 Message Date
Noisyfox
33eca28f10 Merge remote-tracking branch 'origin/main' into dev/gizmo 2023-11-10 09:57:11 +08:00
Ocraftyone
572bc2dabd SS port - Change extrusion role gcode (#2459)
implement custom gcode for when the extrusion role is changed

Co-authored-by: supermerill <merill@free.fr>
2023-11-09 22:30:30 +08:00
Noisyfox
9fe1cbab3f Fix cli segfault (#2661) (#2665) 2023-11-09 22:22:43 +08:00
Noisyfox
4c32f59556 Fixes scars on thing walls when "avoid crossing wall" is turned on (#2659)
* Travel very close to the inner holes, could cross external perimeter when the avoid crossing perimeters was enabled.

(cherry picked from commit prusa3d/PrusaSlicer@6c51e5148c)

* Modified variable offset in the avoid crossing perimeters to not cause scars on thin objects (#7699).

Previously, the minimum contour width was chosen too conservative and, on some thin objects, only allowed minimal (or non) offset. This could result in travels being planned along the outer perimeter.

Now, the minimum contour width is chosen much smaller at the start and tested if the variable offset wasn't failed (the outer contour broke up into more parts, more or fewer holes, etc.).
If any problem is detected, the variable offset is recalculated with a larger minimum contour width.

(cherry picked from commit prusa3d/PrusaSlicer@dc00f0bf98)

---------

Co-authored-by: Lukáš Hejl <hejl.lukas@gmail.com>
2023-11-09 22:21:44 +08:00
Noisyfox
addf53fadb Fix some gui issues (#2653)
* Fix text gizmo input dialog caption alignment

* Fix issue that layer slider top/bottom label left edge been cut by draw region (#2603)
2023-11-09 22:19:40 +08:00
SoftFever
d3694427c0 Automatically recover from corrupted config file 2023-11-09 22:09:41 +08:00
SoftFever
12ea2b5190 Fix retraction issues 2023-11-09 20:54:33 +08:00
Noisyfox
c66fdccea6 Merge remote-tracking branch 'origin/main' into dev/gizmo 2023-11-08 09:14:28 +08:00
Noisyfox
96d636f23d Fix canvas background in dark mode 2023-11-08 09:14:16 +08:00
SoftFever
79a11220e3 Fixed a regression that checking new version didn't work
Fixed #2622
2023-11-07 21:32:36 +08:00
SoftFever
8bd90db9c3 Fixed a regression that bed type was not remembered and switched when switching bed types 2023-11-07 18:36:20 +08:00
Noisyfox
d5415dc608 Add back the option to disable ensure vertical shell thickness and detect narrow internal solid infill (#2626)
* Add back the option to disable `ensure vertical shell thickness` (#2602)

* Add back the option to disable `detect narrow internal solid infill` (#2623)
2023-11-06 23:21:07 +08:00
SoftFever
e3810526c3 Fixed #2537: pa pattern issues on delta printers 2023-11-06 23:02:40 +08:00
Noisyfox
ab8c202752 Fix painter gizmos crash on macOS 2023-11-06 20:42:02 +08:00
SoftFever
7506fa8ac2 Fix vector too long issues 2023-11-06 18:32:19 +08:00
Noisyfox
79e96f5a6e Cut: Fix crashing in programming cut. Also fixes the cut z offset. 2023-11-05 16:03:10 +08:00
Noisyfox
c3625ff48a Text: Fix text moving grabber 2023-11-04 11:41:11 +08:00
Noisyfox
60b05679e9 Cut: Fix model rendering 2023-11-04 11:41:11 +08:00
Noisyfox
296c0c9a78 Cut: Use Orca color schema and dialog layout 2023-11-04 11:41:11 +08:00
enricoturri1966
76e7931621 Cut: Initial porting of Cut Gizmo 2023-11-04 11:41:11 +08:00
Noisyfox
43d1c0758f Measure: Fix copy to clipboard encoding 2023-11-04 11:41:11 +08:00
Noisyfox
9599a9a7a1 Measure: Update measure dialog layout 2023-11-04 11:41:11 +08:00
Noisyfox
ad30c2a4bf Measure: Use Orca color schema 2023-11-04 11:41:11 +08:00
Noisyfox
468da087bd Measure: Update measure gizmo tooltip 2023-11-04 11:41:11 +08:00
Noisyfox
b4c1c44413 Fix-position tooltip should also be clamped inside render area 2023-11-04 11:41:10 +08:00
Noisyfox
3b421954fc Measure: Fix measure window position 2023-11-04 11:41:10 +08:00
enricoturri1966
4946f32cdd Measure: Initial porting of Measure Gizmo 2023-11-04 11:41:10 +08:00
enricoturri1966
241895071b Sync most of the gizmos with latest PrusaSlicer 2023-11-04 11:41:10 +08:00
enricoturri1966
0e39c3fecc Added method const GLVolume* Selection::get_first_volume() const to simplify client code
(cherry picked from commit prusa3d/PrusaSlicer@0e3490620e)
2023-11-04 11:41:10 +08:00
Filip Sykala
d8185ca9f4 Various gizmos refactoring 2023-11-04 11:41:10 +08:00
Filip Sykala
7c555003ad Separate GizmoManager on_move into gizmo itself
(cherry picked from commit prusa3d/PrusaSlicer@c751d6327d)
2023-11-04 11:41:10 +08:00
Noisyfox
866d0fb33f Do not compile sla related gizmos 2023-11-04 11:41:10 +08:00
Filip Sykala
673261e1f3 Add virtual function to process mouse_event
(cherry picked from commit prusa3d/PrusaSlicer@2ab44546bd)
2023-11-04 11:41:10 +08:00
Filip Sykala
77d875c27a Suggestion to detect volume modification instead of check some gizmos during dragging
(cherry picked from commit prusa3d/PrusaSlicer@96610ecea9)
2023-11-04 11:41:10 +08:00
Filip Sykala
279dc7fc20 remove unnecessary getting of raw pointer from unique pointer
(cherry picked from commit prusa3d/PrusaSlicer@209eda75a0)
2023-11-04 11:41:10 +08:00
enricoturri1966
5f48c32bcb Tech ENABLE_RAYCAST_PICKING - Gizmo flatten: fixed update of raycasters transformations
(cherry picked from commit prusa3d/PrusaSlicer@2a2d442b28)
2023-11-04 11:41:10 +08:00
enricoturri1966
3da63eab27 Tech ENABLE_RAYCAST_PICKING - Method GLCanvas3D::_mouse_to_3d() modified to use the new scene raycaster instead of reading data from the depth buffer
(cherry picked from commit prusa3d/PrusaSlicer@a7af73795d)
2023-11-04 11:41:09 +08:00
enricoturri1966
954904e486 Tech ENABLE_RAYCAST_PICKING - Rendering for rectangle selection made only inside the rectangle, on systems supporting framebuffers
Various other refactorings & fixes

(cherry picked from commit prusa3d/PrusaSlicer@39b1222b22)
2023-11-04 11:41:09 +08:00
enricoturri1966
c142161111 Removed tech ENABLE_RENDER_PICKING_PASS
(cherry picked from commit prusa3d/PrusaSlicer@f45711e7e5)
2023-11-04 11:41:09 +08:00
enricoturri1966
cbc95688df Tech ENABLE_RAYCAST_PICKING - Raytraced picking of Gizmo Flatten
(cherry picked from commit prusa3d/PrusaSlicer@f5e68a6ac6)
2023-11-04 11:41:09 +08:00
enricoturri1966
1964bd4321 Tech ENABLE_RAYCAST_PICKING - Refactoring to allow for easier update of raycasters transform
(cherry picked from commit prusa3d/PrusaSlicer@9ac5ab857b)
2023-11-04 11:41:09 +08:00
enricoturri1966
e60c67dfd2 Tech ENABLE_RAYCAST_PICKING - Raytraced picking of Move, Rotate and Scale Gizmo 2023-11-04 11:41:09 +08:00
Noisyfox
f05da6d0b9 Fix volume picking in cut gizmo 2023-11-04 11:41:09 +08:00
enricoturri1966
846e2b51de Tech ENABLE_RAYCAST_PICKING - Raytraced picking of gizmos - Move Gizmo
(cherry picked from commit prusa3d/PrusaSlicer@df47ba7122)
2023-11-04 11:41:09 +08:00
Noisyfox
f52eb33e5b Implement plate picking 2023-11-04 11:41:06 +08:00
enricoturri1966
ce88d24357 Tech ENABLE_RAYCAST_PICKING - Raytraced picking of volumes 2023-11-04 11:41:06 +08:00
enricoturri1966
e0a21de384 Tech ENABLE_GIZMO_GRABBER_REFACTOR - Refactoring of GLGizmoBase::Grabber to have a single static instance of the cube and cone models to be shared by all grabbers
(cherry picked from commit prusa3d/PrusaSlicer@f504236734)
2023-11-04 11:41:06 +08:00
Noisyfox
c2f3a95932 Fix variable init 2023-11-04 11:41:06 +08:00
Noisyfox
bf00e198de Fix macos build 2023-11-04 11:41:06 +08:00
Noisyfox
9b7ce149ae Fix move gizmo grabber rendering 2023-11-04 11:41:06 +08:00