Lukas Matena
67c1f40eae
Fixed a crash when deleting the last object with autocenter enabled ( prusa3d/PrusaSlicer#11186 ).
...
(cherry picked from commit prusa3d/PrusaSlicer@926af1ab8d )
2023-11-17 09:32:45 +08:00
Lukas Matena
ee4705d6b7
Wipe tower: changed the way how initial wipe tower preview depth is calculated
2023-09-09 13:19:43 +08:00
Lukas Matena
c21950c07b
Merge branch 'et_reload_from_disk_fixes'
2021-12-10 14:36:38 +01:00
Lukas Matena
06fd732b57
Fixed behaviour of float sliders in SLA gizmos,
...
which was broken after the 'Edit' button was added.
This is a bit hacky fix, it might be worth improving later.
2021-12-08 16:19:08 +01:00
Lukas Matena
e9b9c48cae
Fixed rear seam option, which was not always respected,
...
the problem was originally introduced in b8c898b , recent
seam changes probably made it more visible
2021-12-08 16:18:54 +01:00
Lukas Matena
efaf4e47c1
When system info sending fails, do not save the "sent" flag into appconfig
2021-11-30 16:21:20 +01:00
Lukas Matena
d6bd128fff
Follow-up to e7cc12b
2021-11-30 13:58:09 +01:00
Lukas Matena
2c5ddfefb2
Fixed an encoding problem in simplify suggestion
2021-11-26 15:15:51 +01:00
Lukas Matena
30fa6ce1d3
Bumped up version number to 2.4.0-beta2
2021-11-26 13:32:12 +01:00
Lukas Matena
aed0003476
Fix of SPE-1109 / #7285 (spiral vase+sequential printing)
...
This was broken with ae7d6db , between 2.4.0-alpha1 and alpha2.
The fix should be refactored after it is certain it is correct.
2021-11-26 13:21:18 +01:00
Lukas Matena
4c9ea5241d
Fixup of a996f33 (When modifiers were used, slicing was cancelled immediately after if began):
...
The algorithm checking for dummy VolumeRegions jumped over one element and always returned
that regions need to be regenerated
2021-11-24 21:53:35 +01:00
Lukas Matena
eb389559b5
Fixup of cc44089 (bed bounding box 2D vs 3D)
...
The mentioned commit has changed behaviour of GLCanvas3D::get_size_proportional_to_max_bed_size(double)
function so that it uses XYZ bounding box instead od just XY. As a result, adding a box object through
the right panel added a huge box when printer max_print_z was higher than x/y. Offset at which a new
object instance is added was also affected.
2021-11-24 10:41:21 +01:00
Lukas Matena
f30a018c5a
Clamp radius in variable layer height dialog, negative values led to a crash
2021-11-22 15:22:43 +01:00
Lukas Matena
4c89a9ed43
Increased 3D connexion translation speed maximum to 30 ( #3385 )
2021-11-22 15:22:43 +01:00
Lukas Matena
a22bc7f7c8
Show an error dialog when opening simplification on incompatible selection
2021-11-22 11:00:17 +01:00
Lukas Matena
6180e3a89e
Do not open simplify dialog on top of the main toolbar
2021-11-22 11:00:17 +01:00
Lukas Matena
aae8c7a844
Fixed the empty layer warning (again),
...
it did not work after top/bottom support contact z was separated
2021-11-22 11:00:17 +01:00
Lukas Matena
67373ca722
Changed gizmo entering/leaving string handling to make localization easier
2021-11-19 12:16:46 +01:00
Lukas Matena
2c31755bc9
Do not use __FILE__ macro ( #7293 )
2021-11-16 16:09:30 +01:00
Lukas Matena
a2c3a6ac2f
Added missing includes (gcc9.4 without pch)
2021-11-16 16:09:30 +01:00
Lukas Matena
17b9189974
Empty layer warning is now generated once per object
2021-11-12 17:08:14 +01:00
Lukas Matena
c677b2771c
Make sure the object does not float after simplification
2021-11-12 07:37:17 +01:00
Lukas Matena
366a3bca07
Merge branch 'lm_simplify_fixes'
2021-11-12 06:51:24 +01:00
Lukas Matena
a61c892c05
Some more fixes when switching objects while simplifying
2021-11-12 06:49:09 +01:00
Lukas Matena
0bfa81be56
Several more fixes:
...
- fixed crash on close when worker is running
- refresh percentage in the UI by requesting extra frames
- get rid of extra m_is_worker_running variable
2021-11-12 06:49:09 +01:00
Lukas Matena
9ad54ab4db
Some more cleanup
2021-11-12 06:49:09 +01:00
Lukas Matena
be04751776
Many small fixes
2021-11-12 06:49:09 +01:00
Lukas Matena
7bcab6f795
Simplify does not touch ModelVolume all the time (runs, but needs polishing)
2021-11-12 06:49:09 +01:00
Lukas Matena
ab260d005e
More adjustments, still working with Model directly
2021-11-12 06:49:09 +01:00
Lukas Matena
6661967f9f
Shared data packed in a struct
2021-11-12 06:49:09 +01:00
Lukas Matena
ba56a79795
Simplify gizmo now renders the volume by itself,
...
it does not rely on the usual GLVolume rendering. GLCanvas3D::toggle_model_object_visibility
was extended to hide a single volume. Rendering the model and wireframe uses the same
vertex buffer, which is now used through GLModel class. GLGizmoRenderTransparent class
should no longer be needed. GLCanvas3D::reload_scene calls replaced with request_rerender.
2021-11-12 06:49:09 +01:00
Lukas Matena
50ea144b84
Minor improvements:
...
- const corectness
- volatile -> std::atomic
- GUI::format
- encoding issues
2021-11-12 06:49:09 +01:00
Lukas Matena
6895e0fde1
External updater is only run in GUI mode
2021-11-10 15:27:46 +01:00
Lukas Matena
262304c777
Use correct encoding when calling external updater
2021-11-10 15:27:46 +01:00
Lukas Matena
8915d8bc91
Improvement of previous commit:
...
- use boost::nowide instead of WinAPI for the encoding conversion
- only add the node when it is not empty
2021-11-10 11:39:34 +01:00
Lukas Matena
bfa91cbd95
Windows: Include blacklisted libraries in SendSystemInfo data
2021-11-10 11:09:37 +01:00
Lukas Matena
ca677fa1da
SLA supports gizmo: selection rectangle now selects partially obscured points as well
2021-11-01 13:02:25 +01:00
Lukas Matena
0b6fc0817f
SendSystemInfo: Reworked internet connection check,
...
now we only do the check on Windows, see the comments
in the code for details.
2021-11-01 12:57:49 +01:00
Lukas Matena
3124892fae
Fixed a tripping assert
2021-11-01 12:52:45 +01:00
Lukas Matena
a01ab28e4c
Fixed encoding of gizmo entering/leaving undo redo snapshots,
...
which was broken by adding an extra TakeSnapshot overload in 41dc265
2021-10-29 21:47:47 +02:00
Lukas Matena
79eb59b9f2
Fix of #7168 : Crash when layer count exceeds 4095
2021-10-26 09:56:49 +02:00
Lukas Matena
22f3682c0f
Fix of #7155 (broken loading of configs from <=1.41.3)
2021-10-22 17:04:08 +02:00
Lukas Matena
e07a2434d3
Merge branch 'lm_seam_fixes2'
2021-10-22 14:52:01 +02:00
Lukas Matena
00dfb8f69c
Make sure that we have the lower_layer_edge_grid when placing seams
2021-10-22 13:16:08 +02:00
Lukas Matena
19eb984d72
SeamPlacer: one more heuristic to get rid of long travels
2021-10-22 13:16:08 +02:00
Lukas Matena
59502e7861
Seam placement improvements
2021-10-22 13:16:08 +02:00
Lukas Matena
3f1fc8329b
Follow-up to 482841b, see also #6743 :
...
The validation is now counterproductive, both the backend and the UI can
handle the situation well enough.
2021-10-21 11:38:10 +02:00
Lukas Matena
fc5560aac2
Fix of #3270 (Confusing cooling hint when min and max fan speed are equal)
2021-10-20 21:59:07 +02:00
Lukas Matena
c12eff19d8
Fixed a possible deadlock:
...
The thread counter should be modified under a mutex, atomic is not enough here
2021-10-18 16:24:15 +02:00
Lukas Matena
dac810951d
Merge branch 'lm_sendsysteminfo'
2021-10-18 15:35:21 +02:00
Lukas Matena
e30e7ffdef
SendSystemInfo: improved error handling
2021-10-18 15:34:51 +02:00
Lukas Matena
99bf3d0a25
SendSystemInfo: Show also in alphas, fixed alpha detection
2021-10-18 15:34:51 +02:00
Lukas Matena
1afa18d719
SendSystemInfo: Use GET instead of ping to check internet connection
2021-10-18 15:34:51 +02:00
Lukas Matena
692a0dade7
SendSystemInfo macOS fixes (get system language, fix ping)
2021-10-18 15:34:51 +02:00
Lukas Matena
5b20406a33
SendSystemInfo: Reporting RAM in GiB
2021-10-18 15:34:51 +02:00
Lukas Matena
13ff92335b
Several fixes and improvements in SendSystemInfoDialog:
...
- do not show memory in MB, show it in GiB rounded to one decimal place
- when sending fails, the HTTP error code is not presented to the user (it is logged though)
- when the user cancels the sending, no extra "sending cancelled" message is shown
- in case there is no internet connection, the dialog is not shown at all
- a 6 second timeout for a case that connection is lost during sending
- the dialog is only shown when the wizard does not show on startup
2021-10-18 15:34:51 +02:00
Lukas Matena
8d115def76
SendSystemInfo: Trim leading/trailing whitespace from all the values
2021-10-18 15:34:51 +02:00
Lukas Matena
ea25461a95
An attempt to fix the SendSystemInfo dialog on GTK3
2021-10-18 15:34:51 +02:00
Lukas Matena
3f9cefc168
SendSystemInfo: Open the dialog based on appconfig, even in alphas
2021-10-18 15:34:51 +02:00
Lukas Matena
f72a5cf1e7
SendSystemInfo: Only get the scaling on Win, not on mac or Linux
2021-10-18 15:34:51 +02:00
Lukas Matena
56c3ea0261
SendSystemInfo: Use /proc/info instead on lscpu on Linux,
...
center dialog after resizing
2021-10-18 15:34:51 +02:00
Lukas Matena
a59f078883
Merge branch 'lm_sendsysteminfo'
2021-10-05 15:36:30 +02:00
Lukas Matena
8401ba192b
Show PrusaSlicer logo in the SendSystemInfoDialog
2021-10-05 15:36:00 +02:00
Lukas Matena
deec0330bb
Disable the dialog before merge with master
2021-10-05 15:09:53 +02:00
Lukas Matena
d7d056c8ba
This reverts commits a186017 and 2423e7f
2021-10-05 15:09:53 +02:00
Lukas Matena
5dd9e98f27
SendSystemInfo: Return number of logical cores on Apple
2021-10-05 15:09:53 +02:00
Lukas Matena
5b5c72e73e
REVERT LATER: More debugging logging
2021-10-05 15:09:53 +02:00
Lukas Matena
e8412d654c
Use /etc/machine-id as unique id on Linux
2021-10-05 15:09:53 +02:00
Lukas Matena
1bef2eacc5
Use hardware UUID as unique id on Apple
2021-10-05 15:09:53 +02:00
Lukas Matena
c0eb4fbbd9
Use MAC address as a base of unique system ID on Windows
2021-10-05 15:09:53 +02:00
Lukas Matena
4733e17266
SendSystemInfoDialog: Collect CPU info on Windows
2021-10-05 15:09:53 +02:00
Lukas Matena
a49c691241
SendSystemInfoDialog now opens through CallAfter, GL extensions are sorted
2021-10-05 15:09:53 +02:00
Lukas Matena
bdc4c4cf30
Added some more info (wxWidgets, gtk, Linux distro, CPU info, monitors)
2021-10-05 15:09:52 +02:00
Lukas Matena
af5abc8079
REVERT LATER: Something for debugging
2021-10-05 15:09:52 +02:00
Lukas Matena
b87f512b9e
SendSystemInfo: do not close the dialog when failed/cancelled, set content-type to json
2021-10-05 15:09:52 +02:00
Lukas Matena
6a819dad89
SendSystemInfoDialog: Actual sending of the info
2021-10-05 15:09:52 +02:00
Lukas Matena
e8af0d6d0f
SendSystemInfoDialog: Use HTML for formatting
2021-10-05 15:09:52 +02:00
Lukas Matena
faa808b385
First draft of SendSystemInfoDialog
2021-10-05 15:09:52 +02:00
Lukas Matena
4ca2401b69
Several minor improvements and fixed warnings
2021-10-01 14:31:22 +02:00
Lukas Matena
5048dbf8b4
Bumped up version number
2021-09-30 16:50:50 +02:00
Lukas Matena
476b48ed11
Revert "Merge branch 'tm_convex_intersect_rotcalip'"
...
This reverts commit 627d8bcaef , reversing
changes made to 66d4462724 .
The change breaks build on mac
2021-09-30 16:49:00 +02:00
Lukas Matena
8afaa004b7
Merge branch 'vb_project_state'
2021-09-30 12:18:14 +02:00
Lukas Matena
5fe90599fc
Painting gizmos no longer use a separate undo/redo stack
2021-09-30 12:18:43 +02:00
Lukas Matena
c61a5d234e
After gizmo snapshots are compacted, rename the last one to something generic
2021-09-30 12:17:52 +02:00
Lukas Matena
2356c30356
Bumped up version number
2021-09-24 13:10:23 +02:00
Lukas Matena
6a5feb818f
Revert "Fixed volume transformations in SLA:":
...
The fix is not complete, it is better not to break it more than it was.
This reverts commit 6b25a9c836 .
2021-09-24 13:03:56 +02:00
Lukas Matena
6b25a9c836
Fixed volume transformations in SLA:
...
Volume transformations were ignored in SLA mode. This did not matter for plain STLs
and PS own 3MF, because in those cases, the volume trafo was identity. Importing
a 3rd party 3MF leads to issues with support/holes placement and generation.
Fixes #6100 and #6744 .
2021-09-24 12:14:44 +02:00
Lukas Matena
284721e0de
Fix of #4666 (selection rectangle in SLA gizmo incorrectly handles transformations)
2021-09-22 21:31:33 +02:00
Lukas Matena
d57d3f99d0
Fix of #3969 (crash if $USER is not set)
2021-09-22 11:58:38 +02:00
Lukas Matena
a6261ff474
Fix of #6898 (finishing slicing interfered with dragging gizmos)
2021-09-22 11:02:52 +02:00
Lukas Matena
82b4a4fe11
Place on face improvement: respect different z-rotation of instances
2021-09-17 09:38:53 +02:00
Lukas Matena
129212a020
Fixed build on Linux (GCC 9.4.0)
2021-09-16 13:14:08 +02:00
Lukas Matena
e8418b509e
Fixed switching of settings access radio buttons in Preferences,
...
the middle button only worked when _MSW_DARK_MODE.
Broken since fd07142 .
2021-09-16 12:40:20 +02:00
Lukas Matena
fe94a3c8c5
LocalesUtils: fixed BSD and improved performance of decimal point formatting functions
2021-09-15 19:52:32 +02:00
Lukas Matena
aef90bc735
Fixed build on Win and one more warning
2021-09-15 18:39:55 +02:00
Lukas Matena
71ba15b6f0
Fixed comparison of layer height profiles when printing with wipe tower:
...
while the layer height profile vector may not contain all print z
values, the only real case with two eqiuvalent layer height profiles is
when one was created as a copy of another, so the vectors should in fact be equal.
2021-09-15 16:37:41 +02:00
Lukas Matena
677cb58000
Fix several warnings
2021-09-15 16:36:59 +02:00
Lukas Matena
5dd905fc8c
Added a forward declaration needed on GCC 9.4.0
2021-09-14 22:56:29 +02:00
Lukas Matena
4ac013ec9c
Fixed painting gizmos with modifiers below the bed:
...
- When a modifier was below the bed and all the object parts above, it would clip
the modifier but not triangulate the cut.
- When an object part was below, it would triangulate all modifiers with
opaque orange color.
Both should now be fixed.
2021-09-13 09:02:11 +02:00
Lukas Matena
7dfd0368fd
Merge commit 'lm_gizmosimprovements^1'
2021-09-03 15:25:54 +02:00