24188 Commits

Author SHA1 Message Date
Lukas Matena
a42223f963 Merge branch 'master_27x' 2024-01-26 13:07:19 +01:00
Lukas Matena
69e0bc3064 Revert "Fix for #11988 : Drop down menus appear outside of PS and cannot be opened again"
This reverts commit 6ff8537ff4fbd14ca09934cdb2bb987131a7b559. There is a non-trivial conflict
when merging to master, let's redo the commit after the merge so it is clear in history.
2024-01-26 12:54:10 +01:00
tamasmeszaros
198f00db8a Comments for uncommented functions declarations within CSGMesh subdir 2024-01-26 10:19:11 +01:00
enricoturri1966
df14f7518d SPE-2092: Fixed OpenGL initialization when user specifies invalid value for command line option 'opengl-version' 2024-01-25 09:33:16 +01:00
Lukas Matena
31ad7375e5 Merge branch 'lm_spe2118' into master_27x 2024-01-24 09:54:38 +01:00
David Kocik
e0e1afd640 Error message when wlanapi.dll is missing
Code improvements due to @lukasmatena code review.
2024-01-24 09:54:00 +01:00
Lukas Matena
05312cacf7 Fix of #11790: missing wlanapi.dll on Win Server 2019 2024-01-24 09:54:00 +01:00
tamasmeszaros
7afddb8006 Get rid of magic constants, code duplication and commented code 2024-01-23 14:27:46 +01:00
Filip Sykala - NTB T15p
ee3546b186 SPE-2103
Make snap-shot to undo/redo stack only on release slider

Connected with attributes:
Text/advanced(char gap, line gap, boldness, skew ratio)
SVG(size)

Also change range for Boldness. VRT font-Ascent.
(different font may have different slider value range)

Fix line gap (it was denied when per glyph was false)
2024-01-23 14:27:02 +01:00
YuSanka
65525b0616 Model: Improved function looks_like_multipart_object().
Check transformed bounding boxes of loaded objects instead of z_min of bounding boxes.
+ BoundingBox: added function shares_boundary() to detect if bounding boxes shares some boundary.

Fix for #11547 - .3mf files with similar sized components aren't being defined as multi-part objects
2024-01-23 12:42:15 +01:00
Lukáš Hejl
7d31f8c0ba SPE-2120: Fix another crash caused by using GCodeGenerator::last_position when it doesn't have an assigned value.
This behavior was there for a long time, but it was uncovered when std::optional was used.
2024-01-23 12:33:19 +01:00
Martin Šach
7f423083b4 Fix: Use toolchange z instead of writer z to restore z on wipe tower.
Writer z can be set in custom toolchange gcode and than the restoration
is invalid.
2024-01-23 09:30:40 +01:00
Martin Šach
194d53ea25 Fix z_offset handling in gcode.cpp. Fixes #11843. 2024-01-23 09:28:25 +01:00
Martin Šach
812c40e887 Unify GCodeGenerator travel to first layer position.
* Fixes SPE-2116. The reason for this bug was forgotten change in
  WipeTowerIntegration after change in gcode.cpp.
* Prevents future similar bugs by unifing the functionality to a method.
2024-01-23 09:00:58 +01:00
Martin Šach
8cbea4982a Add lift before the first travel move in GCode.cpp 2024-01-23 09:00:58 +01:00
Lukas Matena
7096abe2f1 Merge branch 'lm_et_spe2092_271' into master_27x 2024-01-22 12:18:06 +01:00
Lukas Matena
3cab0cbecb Using Semver to check minimum required OpenGL version 2024-01-22 12:17:07 +01:00
enricoturri1966
1832c833a1 #12000: Fixes incorrect detection of supported OpenGL version (SPE-2092)
1) Force OpenGL 3.2 as minimum required. If the graphic card does not support it, automatically switch to software renderer.

2) command line option: --opengl-version=X.Y -> allows to select core profile of version X.Y.

3) command line option: --opengl-compatibility -> allows to select compatibility profile of the highest OpenGL version supported by the graphic card.

4) command line option: --opengl-debug -> enable OpenGL debug output on card supporting OpenGL 4.3 or higher (output on console).
2024-01-22 12:16:55 +01:00
YuSanka
85fa892c12 SPE-2112 : Don't check an object units, when it was loaded from file with known units (3mf) 2024-01-22 11:32:27 +01:00
Lukáš Hejl
cda2446649 SPE-2120: Fix crash caused by using GCodeGenerator::last_position when it doesn't have an assigned value.
This behavior was there for a long time, but it was uncovered when std::optional was used.
2024-01-22 10:28:08 +01:00
YuSanka
6ff8537ff4 Fix for #11988 : Drop down menus appear outside of PS and cannot be opened again
Note: Win specific
2024-01-18 18:53:44 +01:00
YuSanka
00a08831a7 ComboBox: Fix for scrolling over a dropdown.
It doesn't need to propagate the MouseWhile event to the parent.
2024-01-18 18:51:38 +01:00
YuSanka
b0673265eb ConfigWizard : Fixed get_preferred_printer_technology() function.
This bug was caused a wrong selection of the new added printer,
when some new vendor other then PrusaSlicer is added,
but PrusaSlicer has installed SLA printers.
(see SPE-2056)
2024-01-18 18:49:32 +01:00
YuSanka
e46c711fce Fix for SPE-2056 : Wrong printer selection when add new logical printer but some physical printer is selected 2024-01-18 18:48:54 +01:00
Filip Sykala - NTB T15p
82c53aef01 Merge branch 'fs_fix_SPE-2097' into master_27x 2024-01-18 13:09:27 +01:00
Filip Sykala - NTB T15p
b989fd714c Merge branch 'fs_fix_SPE-2082' into master_27x 2024-01-18 13:09:04 +01:00
Filip Sykala - NTB T15p
d703a02f40 Merge branch 'fs_fix_SPE-2064' into master_27x 2024-01-18 13:08:41 +01:00
Filip Sykala - NTB T15p
fb4e4710e7 Merge branch 'fs_fix_slider_snapshots_SPE-2100' into master_27x 2024-01-18 10:40:26 +01:00
Filip Sykala - NTB T15p
ecacefa549 Merge branch 'fs_fix_SPE-2105' into master_27x 2024-01-18 10:36:45 +01:00
Filip Sykala - NTB T15p
b3beeb9193 Merge branch 'fs_fix_SPE-2095' into master_27x 2024-01-18 09:40:15 +01:00
Filip Sykala - NTB T15p
1444e9c2cb Merge branch 'fs_fix_SPE-2099' into master_27x 2024-01-18 09:39:47 +01:00
tamasmeszaros
a084471740 Merge branch 'tm_fix_xl_arrange_rebase_SPE-2033' into master_27x 2024-01-17 16:31:48 +01:00
Martin Šach
906f605333 Fix: disable debug and trace logs in builds 2024-01-17 14:44:21 +01:00
tamasmeszaros
e24be7891e FIxed the issue but TMArrangeKernel needed changes
fixing object function not favoring existing pile to stick to

Trying to fix problem with shit+arrange not sticking to existing objects
2024-01-17 14:42:17 +01:00
tamasmeszaros
9f52d0a481 Merge branch 'tm_fix_shift_arrange_rebased_SPE-2071' into master_27x 2024-01-17 14:13:48 +01:00
tamasmeszaros
d110541e12 Fixing issue with aligning to unprintable objects when doing shift+a 2024-01-17 14:12:15 +01:00
Martin Šach
97ba0fb478 Fix retraction test 2024-01-17 13:09:26 +01:00
Martin Šach
2770b977da Merge ms_lh_zhop_improvements into master.
* Replace the ramping travel with a smooth ramping travel.
* Replace helical layer changes with ramping layer changes.
* Implement the "lift before obstacle" feature.
2024-01-17 12:24:00 +01:00
Martin Šach
f9283728d6 During first layer change, do not actually move z.
This enables the user to set his own z in start gcode. Fixes #11843.
2024-01-17 12:22:22 +01:00
Lukáš Hejl
5ddcea806b Add to GCodeGenerator::last_position only when it has an assigned value.
This behavior was there for a long time, but it was uncovered when std::optional was used.
2024-01-17 12:22:22 +01:00
Lukáš Hejl
da57489874 Implement lift before obstacles that take into account already extruder extrusions on the current layer.
Ignore the first intersection of the travel path with the object from which the travel starts.

Created a new class TravelObstacleTracker, for wrapping all data structures related to lift before obstacles.
2024-01-17 12:22:22 +01:00
Lukáš Hejl
2fc9299c65 Use max value of double instead of std::optional in get_first_crossed_line_distance() and get_obstacle_adjusted_slope_end(). 2024-01-17 12:22:22 +01:00
Lukáš Hejl
dbd0369767 Use forward declarations in Travel.hpp. 2024-01-17 12:22:22 +01:00
Lukáš Hejl
1b0ba60280 Rename m_last_obj_copy to m_current_instance and use struct instead of std::pair.
Also, instead of storing the shift of the instance, store the instance index.
2024-01-17 12:22:22 +01:00
Lukáš Hejl
317db5fab4 Move ObjectLayerToPrint from GCodeGenerator to outside to allow using forward declaration. 2024-01-17 12:22:22 +01:00
Lukáš Hejl
5858cbf0f7 Fix warnings in Travels tests. 2024-01-17 12:22:22 +01:00
SachCZ
ff30d7aad3 Replace last_pos and helpers with optional in GCode.cpp 2024-01-17 12:22:22 +01:00
SachCZ
7f397cd7b3 Implement ramping layer change using a tag in gcode
During layer change, instead of generating the gcode, generate a placeholder tag. Then at the end of layer processing replace this tag with a ramping travel move.
This solves the issue, that one does not know the starting point of the current layer where the layer change gcode would be originally generate.
The ramping layer changes uses smoothing of the ramping travel. Also it is adjusted in such a way that it increases the ramp angle when the travel is too short, to always reach the next layer.
2024-01-17 12:22:19 +01:00
SachCZ
24e3254697 Smooth z-hop curve to avoid unreasonably high jerk setting.
* Replace the ramping travel with a smooth ramping travel on marlin 2 under the right circumstances.
2024-01-17 12:21:36 +01:00
Martin Šach
eff53d4dba Add option cmd option to limit the number of threads 2024-01-17 10:45:13 +01:00