Commit graph

9288 commits

Author SHA1 Message Date
YuSanka
f5dc746e94 Fix for #7419 - Non-modal settings window loses focus after accepting dialog (MSW specific issue)
MessageDialog is used instead of wxMessageDialog on MSW for supporting of the Light/Dark color mode.
But a constructor of the MsgDialog replaces a parent which is equal to nullptr with the MainFrame .
That is why non-modal dialog with Preset Settings loses a focus after close of the MessageDialog.

"m_msg_dlg_parent" is added to ConfigManipulation class. ConfigManipulation's instance owed by Tab will use the Tab as a parent for MessageDialogs.
=> The MessageDialog with information about configuration incompatibility will always appear over related SettingsTab
and a non-modal dialog with Preset Settings will not lose the focus.
2021-12-06 11:44:29 +01:00
enricoturri1966
c7a4f61238 #7415 - GCodeViewer::refresh_render_paths() - Remove empty render paths to avoid calling glMultiDrawElements() with empty data while rendering toolpaths. 2021-12-06 11:39:10 +01:00
Vojtech Bubnik
d4d558ebee Fix of GCodeViewer crashes when opening app preferences #7430 2021-12-06 08:23:19 +01:00
Vojtech Bubnik
bfce4f6901 Follow-up to 3622f06bed
Work around 3D scene focus after de-activation of the main
window without having to resort to CallAfter(), which breaks
on Linux with some window managers that follow mouser cursor.
Fixes #5620 #6870 #6992

3622f06bed was not a correct solution,
it broke focus for non-modal windows.
Fixes #7419

The actual issue seems to be caused by wxProgressDialog not playing
well with modal dialogs closed just before wxProgressDialog opens.
If wxProgressDialog parent was not a main frame, keyboard focus
was not restored correctly after the wxProgressDialog closed.
2021-12-05 09:09:34 +01:00
Vojtech Bubnik
d44525d916 Fix of Upload and simulate wrong label (Issue #7424) 2021-12-05 08:45:31 +01:00
YuSanka
8a2c15ad60 Fix for #7408 - Crash after closing error for deleting box shape with cylinder negative volume 2021-12-04 10:05:14 +01:00
bubnikv
6122f630d4 Fixing broken scrolling with a touch pad on some Windows laptops.
This issue #2750 is old, it was fixed and broken again.
Now it is being fixed differently.
2021-12-04 09:37:09 +01:00
YuSanka
fdc4ee7542 Suppress to use info line "Post processing scripts shall..." on Linux.
Otherwise click on this line causes a strange frizz of the settings page.
And line hovering by the mouse has no visual effect on Linux.
(Neither wxEVT_ENTER_WINDOW nor wxEVT_LEAVE_WINDOW isn't catch by wxStaticText for some reason)

+ Call of the SetToolTip() moved from constructor to wxEVT_ENTER_WINDOW. In this case Tooltip text will always respect to the "suppress_hyperlinks" value.
2021-12-03 16:47:31 +01:00
bubnikv
3622f06bed Trying to work around 3D scene focus after de-activation of the main
window without having to resort to CallAfter(), which breaks
on Linux with some window managers that follow mouser cursor.
May fix #5620 #6870 #6992
2021-12-03 16:20:01 +01:00
YuSanka
f14a5f40b3 Localization.
* --boost option is added to gettext_make_pot script to recognize Boost format strings.
* New script gettext_merge_po_with_pot is added to merging new lines from POT to current PO
* --check-format option is added to gettext_po_to_mo script to check language dependent format strings during generation MO from PO.
* POT is updated and all PO files are merged with it. So, community can just load needed PO file and continue in translation.
* ExtruderSequenceDialog: Added messed localization markers
2021-12-03 16:19:09 +01:00
Lukáš Hejl
36b014a8dd Fixed a bug in the precomputation of the data for bucket fill that was triggering assert in TriangleSelector::neighbor_child(). 2021-12-03 14:06:53 +01:00
David Kocik
60b8a8245c Deleted unused function in Octoprint 2021-12-03 09:47:56 +01:00
tamasmeszaros
08e3e60a5f Fix CGAL build with major version > 4 on Linux
fixes #7341

CGAL upstream CMake config will lock in the major version if installed as a distro package and will not provide any version info if compiled and installed from upstream. As of this commit, PrusaSlicer can be built with CGAL 4.13.2, and 5.0 but there is no universal way to specify the minimum version that would work with static dependencies and linux packages.

sorry #4912
2021-12-03 09:46:07 +01:00
Vojtech Bubnik
7837070d29 Follow-up to c6de3e84eb
Fixed typos in option labels.
2021-12-03 09:40:00 +01:00
YuSanka
def5bd6797 Follow-up to 7272b2b083
Comment is extended
2021-12-03 09:39:37 +01:00
Vojtech Bubnik
50da39d30b Windows specific: Only start the 3rd party updater application
if enabled in PrusaSlicer preferences.
2021-12-03 09:26:44 +01:00
Vojtech Bubnik
45d9e6bddd Follow-up to 7828964f8c
Fixed no way of leaving the "export G-code" dialog loop.
Improved the error message by explaining that some characters
are not allowed by a FAT file system.
2021-12-03 09:05:14 +01:00
Vojtech Bubnik
4d1ce89c22 Follow-up to f4dfbb69e2
Now that libcurl is used for URL host substitution,
we want to make sure that the new code compiles on Windows only
because that is where we need to do the URL host substitution
due to Windows 10/11 mDNS resolve issues and
because we have a control on the libcurl version statically linked
on Windows, so we are sure the URL API is available.
2021-12-03 08:12:47 +01:00
Vojtech Bubnik
f4dfbb69e2 Replaced the code to substitute host address part in URL
with libcurl library calls. This solution should be more robust
than a homebrew URL parser solution.
2021-12-03 08:02:16 +01:00
Lukáš Hejl
f88d678a4a Added a missing include (GCC11.1 without PCH). 2021-12-02 21:04:55 +01:00
Vojtech Bubnik
26a6cb2129 Fixed ironing over areas with modifier meshes:
1) Areas inside modifier meshes were ironed multiple times.
2) Ironing areas were not properly merged.

Layer::lslices were not always properly merged with modifier meshes
applied, which lead to the ironed surface being split and not fully
ironed, as there were artificial gaps created between regions as if
they were covered by perimeters (we don't iron over perimeters).
2021-12-02 18:19:35 +01:00
YuSanka
7272b2b083 Fix for #7207 - Display of object labels does not match with the "View"-menu, if "Complete individual objects" is used 2021-12-02 17:08:03 +01:00
Vojtech Bubnik
a6202c8f16 Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2021-12-02 16:40:26 +01:00
Vojtech Bubnik
21e5481a58 Fix of fan control for raft layers.
Fixes Fan starts at first layer, even though disabled for first layer. #7232
This is a regression due to cooling refactoring, which cooled
support layers independently from object layers. The bug here was that
all the raft layers were cooled together with the first object layer.
2021-12-02 16:40:18 +01:00
David Kocik
a840f8020f Substitution of host during ip resolve: correct handling of ipv6 2021-12-02 16:31:19 +01:00
YuSanka
71a9ded1c0 ObjectList: Fixed update of the icons for InfoItems, when color mode was changed
Sidebar:ObjectInfo: Fixed update of the icon, when color mode was changed
+ Added new icons for "Sinking" and "ShapeGallery"
2021-12-02 16:11:52 +01:00
YuSanka
efbf64fdea Added description line for the "Post-processing scripts".
ogStaticText id extended for SetPathEnd() function. It allows to use description line like a hyperlink
2021-12-02 15:18:05 +01:00
David Kocik
15104cb787 Load basic notifications later so the translations are correct. 2021-12-02 13:57:49 +01:00
David Kocik
d60bbc382d few asserts in notifications manager 2021-12-02 13:57:02 +01:00
enricoturri1966
b062a0f281 Fixed build when tech ENABLE_SMOOTH_NORMALS is enabled 2021-12-02 13:42:26 +01:00
Lukáš Hejl
7bb38840e1 Replaced the repeated application of Cursors (Sphere or Circle) in painting using 2D and 3D Capsules.
Previously, the Cursor (Sphere or Circle) was repeatedly applied between two mouse positions, creating brushstrokes with ripples on the edges between those mouse positions.
Now, a single capsule (3D or 2D) is applied between those mouse positions, which creates brushstrokes without these ripples.
2021-12-02 12:36:48 +01:00
Lukáš Hejl
e898eda320 Refactoring of Cursors in TriangleSelector as preparation for upcoming improvements of painting. 2021-12-02 12:36:48 +01:00
YuSanka
fc089fd2c5 Code refactoring for d88ef826cd
reload_scene() call were followed by update(). It synchronizes back-end with front-end and then it calls reload_scene() again.
However in SLA mode reload_scene() expects the back-end to be synchronized with front-end, thus we get asserts that we all have ignored for a long time.

So, we call ObjectList::update_info_items() after the call of update() where reload_scene() is already called and GLCanvas3D::is_object_sinking() will return correct value
2021-12-02 11:26:20 +01:00
enricoturri1966
48d88191e2 Fixed rotation of volumes while ALT key is pressed 2021-12-02 11:11:00 +01:00
David Kocik
a4b4af8a1a Change of 71082adbc9ac2101c39f46218d666e46ab4ecb7c
Instead of just adding port, take original address and replace just host with resolved host.
fix of #7389
2021-12-02 10:25:31 +01:00
David Kocik
0939dab807 allow_ip_resolve in app config 2021-12-02 10:25:04 +01:00
David Kocik
9788a80c6f Added port number to resolved ip address if specified.
fix of #7361
2021-12-02 10:25:04 +01:00
Lukáš Hejl
7f951c2df8 Fixed an issue that travels could lead through a hole when the avoid crossing perimeters was enabled at the same with "External perimeter first" or "Detect thin walls". 2021-12-02 09:35:20 +01:00
Lukáš Hejl
e85a0ba248 Added missing includes (GCC11.1 without PCH). 2021-12-02 09:30:03 +01:00
enricoturri1966
ba20cc4892 #7396 - Fix of crash while slicing a particular stl file (missing checks into GCodeViewer::load_toolpaths()) 2021-12-02 09:09:19 +01:00
Vojtech Bubnik
9ea81a9dbf Fixing Perl unit tests 2021-12-01 19:24:23 +01:00
Vojtech Bubnik
9cf483fe08 WIP Lightning infil: Cleaning up some compiler errors 2021-12-01 19:02:37 +01:00
Vojtech Bubnik
481def3205 WIP Lightning Infill, roughly integrated, untested, disabled with
HAS_LIGHTNING_INFILL
2021-12-01 18:11:41 +01:00
Vojtech Bubnik
e8697d2fc2 WIP Cura Lightning infill, initial port. 2021-12-01 16:45:04 +01:00
David Kocik
f03f8f52d7 Fixed loading translation of hint notification text and reloading this texts in other langs. 2021-12-01 15:44:44 +01:00
YuSanka
b78b91b72e Localization: Updated CZ, DE, ES, FR, IT and PL dictionaries.
+ Fixed some of phrases and updated POT-file
2021-12-01 13:07:25 +01:00
enricoturri1966
da7d462224 QHull library - Set #define REALfloat 0 to use doubles instead of floats. This fixes #7377 2021-12-01 12:22:37 +01:00
enricoturri1966
fcc13d1665 #7388 - Fixed shell does not align in Z direction if raft enabled in gcode preview 2021-12-01 09:16:53 +01:00
Vojtech Bubnik
a89020abd7 Trying to fix compilation issues due to _() macro being used by mpl. 2021-11-30 18:06:01 +01:00
Vojtech Bubnik
4158f9ec8e New config value "gcode_resolution" replaces the hard coded RESOLUTION
value, which was set to 0.0125mm.
2021-11-30 17:52:05 +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
Vojtech Bubnik
f51162f238 Improved G-code post processor error reporting in case the G-code
post processor did not edit the G-code in place.
2021-11-30 14:16:04 +01:00
Lukas Matena
d6bd128fff Follow-up to e7cc12b 2021-11-30 13:58:09 +01:00
Vojtech Bubnik
5a873dd1e5 Fixing a loophole in GUI::format() for UTF8 template input. 2021-11-30 13:49:22 +01:00
Vojtech Bubnik
c514f45260 Fix of #7386, missing include 2021-11-30 13:17:56 +01:00
Vojtech Bubnik
229c45c729 Linux checking for DISPLAY variable: Don't check for WAYLAND_DISPLAY,
PrusaSlicer does not use it.
2021-11-30 12:58:47 +01:00
Vojtech Bubnik
a09b4ff5c8 Linux specific: Avoid crashing with DISPLAY variable not set. 2021-11-30 12:41:35 +01:00
YuSanka
8fc620375c Fix for #7384 - From/To UTF8 conversation issue for text controls in Settings Tabs
+ BitmapComboBox: fixed warning under MSW
2021-11-30 12:32:40 +01:00
tamasmeszaros
86afffa692 Don't let UI jobs overlap. 2021-11-30 12:07:52 +01:00
enricoturri1966
ef059404b3 Tech ENABLE_FIX_SUPERSLICER_GCODE_IMPORT set as default 2021-11-30 12:01:22 +01:00
enricoturri1966
152c3be53a Tech ENABLE_FIX_SEAMS_SYNCH set as default 2021-11-30 11:42:39 +01:00
YuSanka
a8cc19127e Hide "Height range Modifier" menu item for the Simple mode
suggestion from the https://github.com/prusa3d/PrusaSlicer/issues/7381
2021-11-30 11:35:53 +01:00
tamasmeszaros
a683745347 Fix crash when deleting objects while ui job is running. 2021-11-30 11:29:47 +01:00
Vojtech Bubnik
d0014c3aa4 Fix of one more compiler warning. 2021-11-30 11:13:24 +01:00
enricoturri1966
73bf19bf51 Tech ENABLE_RELOAD_FROM_DISK_REPLACE_FILE set as default 2021-11-30 11:12:54 +01:00
enricoturri1966
a3874a410f Tech ENABLE_FIX_PREVIEW_OPTIONS_Z set as default 2021-11-30 10:55:00 +01:00
Vojtech Bubnik
5fd279cbc8 Fixing clang compiler warnings 2021-11-30 10:50:27 +01:00
enricoturri1966
f72d83993e Tech ENABLE_SEAMS_USING_BATCHED_MODELS set as default 2021-11-30 10:32:28 +01:00
enricoturri1966
156f3d1b11 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2021-11-30 09:41:50 +01:00
enricoturri1966
781b457035 Tech ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED set as default 2021-11-30 09:41:43 +01:00
Vojtech Bubnik
c5e8a1c409 Fixing linking on Windows after eddcd93e82
Merge branch 'RandoMan70-introduce-mks-wifi-support-2.3.0-rc2'
2021-11-30 09:40:40 +01:00
Vojtech Bubnik
b553ef7478 Follow-up to 8967ee57ed
FlashAir does not support start of print
2021-11-30 09:18:05 +01:00
Vojtech Bubnik
8967ee57ed Start Simulation for Duet
Author: Martin Loidl <martin.loidl@gmail.com>

    * PrintHost can now return a set of possible actions to be done after a
      upload is finished
    * Added new Button for starting a simulation after upload
    * Duet Hosts are now able to start a simulation after upload instead of
      starting a print
    * removed now unneeded config key 'printhost_print'
2021-11-30 08:43:39 +01:00
enricoturri1966
03a6a46dce Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2021-11-30 08:37:00 +01:00
enricoturri1966
75856d5e65 Tech ENABLE_SEAMS_USING_MODELS set as default 2021-11-30 08:36:55 +01:00
YuSanka
f5cf3cb81d MSW specific: Hide "Use system menu for application" option in Preferences for system older then Windows 10
(related to the fix of #7355 - PrusaSlicer 2.4.0-beta-2+win64 will not start on Windows 7 64-bit )

+ Updated URL_HASH SHA256 in wxWidgets.cmake in respect to the 51c824019e98fc97b0bcdd4d9f4ed4cb523a7cac in wxWidgets-v3.1.4-patched
2021-11-29 21:00:43 +01:00
Vojtech Bubnik
56d5a340ce Follow up to the MKS merge:
Reformatted for code conformity.
Changed the xxx_ member variables to m_xxx
Replaced std::list with std::deque
2021-11-29 18:12:35 +01:00
Vojtech Bubnik
b02b33338c Merge branch 'introduce-mks-wifi-support-2.3.0-rc2' of https://github.com/RandoMan70/PrusaSlicer into RandoMan70-introduce-mks-wifi-support-2.3.0-rc2 2021-11-29 17:31:21 +01:00
Vojtech Bubnik
6883919a7b Fixed handling of "clip_multipart_objects".
This was a regression of 2.4.0-alpha1 wrt. 2.3.3, where handling of
multiple volumes was refactored.
As a result, handling multi-part objects with clip_multipart_objects
disabled was broken.

With clip_multipart_objects disabled, the multi-part objects no more
clip one another and it is sole responsibility of the user to handle
overlaps.

Fixes "add part" error - PrusaSlicer 2.4.0 b2 #7366
2021-11-29 16:33:44 +01:00
Vojtech Bubnik
e7cc12b2c9 Fix of output file dialog extension template for OSX:
When opening a "Save" file dialog with a default output file name,
OSX file dialog strips the provided extension and replaces it
with the default extension. This causes issues with a custom
file output template, where a non-default file extension is specified.

This commit changes the function to generate file dialog templates
so that if a default extension is provided, it is emitted
as first into the extension template.

Fixes Post Processing passes wrong name #7190
2021-11-29 15:46:25 +01:00
n8bot
3f0bdb5816
Fix ConfigOptionEnum for interface pattern (#7316)
Caused some intermittent issues with profiles warning about "rectilinear grid" interface pattern not existing.
2021-11-29 11:21:21 +01:00
Vojtech Bubnik
87b6073575 Follow-up to aed0003476
refactored for clarity
    Fix of SPE-1109 / #7285 (spiral vase+sequential printing)
    This was broken with ae7d6db, between 2.4.0-alpha1 and alpha2.
2021-11-29 10:26:53 +01:00
Vojtech Bubnik
bcc02172f9 PrintApply: Limiting the update of a modifier to an intersection
of bounding boxes of all the modifiers up to the parent printable volume.
2021-11-29 10:13:09 +01:00
Vojtech Bubnik
f458101db6 Fix of Resolution config setting appears to do nothing #7364
This is a regression wrt. to PrusaSlicer 2.3.3 due to refactoring
of the slicing process for better multi material support
and to support negative volumes.
2021-11-29 09:20:37 +01:00
enricoturri1966
b164271e10 #7368 - Limit count of gcode lines shown into vertical slider tooltip to prevent flickering of the tooltip 2021-11-29 09:12:44 +01:00
Lukas Matena
2c5ddfefb2 Fixed an encoding problem in simplify suggestion 2021-11-26 15:15:51 +01:00
Lukáš Hejl
f4125f2db8 Fixed the collision between BuildVolume::Type::Convex and macro Convex defined inside /usr/include/X11/X.h that is included by WxWidgets 3.0. 2021-11-26 13:53:11 +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
YuSanka
84c4f181e4 Next fix for #6814.
"support_material_overhangs_queried" variable have not to be static after a fixing of the #6124.
2021-11-26 11:35:29 +01:00
David Kocik
119be5829d typo button id fix 2021-11-26 10:40:38 +01:00
David Kocik
e276b70851 Resolve IP address from last curl connection and use it as address for next Octoprint upload
IP resolve only for non secure connection and on windows.
2021-11-25 15:18:15 +01:00
enricoturri1966
cd8c6ddc8c Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_print_volume_fit 2021-11-25 15:07:18 +01:00
tamasmeszaros
2f805de46e Fix locked in version of CGAL
fixes #7341
2021-11-25 10:40:12 +01:00
enricoturri1966
bc5ef11c05 Fix of toolpath outside print area wrongly reported - SPE-1135 2021-11-25 09:40:36 +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
enricoturri1966
5ddfe8dab2 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_print_volume_fit 2021-11-24 12:55:09 +01:00
enricoturri1966
e6c7814546 Fix of missing update after changing the value of Max print height into Printer settings tab - SPE-1133 2021-11-24 12:31:27 +01:00
enricoturri1966
bdb9d0bf9a Fixed warning 2021-11-24 11:55:52 +01:00
enricoturri1966
2827609539 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2021-11-24 11:48:57 +01:00
enricoturri1966
c071132385 Fix of objects have wrong color when using convex printbeds - SPE-1132 2021-11-24 11:48:52 +01:00