Lukas Matena
97c4c02001
Wipe tower: don't do sparse infill when there is a soluble filament above it
2021-04-05 23:39:27 +02:00
Lukas Matena
7007bf665c
Added a missing include for gcc
2021-03-30 23:04:42 +02:00
Lukas Matena
cafa5b26a8
Compilation fixes
2021-03-23 12:40:29 +01:00
Lukas Matena
fc7762e465
Added a missing include (Linux)
2021-03-16 07:25:31 +01:00
Lukas Matena
c18ad5f9d6
Added a missing include (gcc)
...
Removed several includes, hopefully they're not needed on any other platform.
2021-03-12 11:31:05 +01:00
Lukas Matena
1efa9a06f6
Adjustable wipe tower brim
2021-03-05 16:41:02 +01:00
Lukas Matena
c25c435d52
Added a new placeholder for custom toolchange gcode (toolchange_z)
...
This always contains the actual print_z of the toolchange, while layer_z contains the print_z
of the print. The two differ in case that wipe tower without sparse layers is used.
Related to #3834 .
2021-03-05 13:58:45 +01:00
Lukas Matena
c8fdd837ae
Added a missing include for gcc
2021-03-05 11:27:25 +01:00
Lukas Matena
70573484c2
Show an error notification when attempting to save 3MF while editing SLA support points
...
The notification disappears when it is no longer valid.
2021-03-04 09:35:41 +01:00
Lukas Matena
abd5a9a46e
Add a notification when custom support enforcers are not used due to supports being off
...
It is now emitted from Print::validate and has a hyperlink to enable supports
2021-03-04 09:35:22 +01:00
Lukas Matena
92a2951b23
Fix build caused by missing returns
2021-03-02 08:17:27 +01:00
Lukas Matena
3f1299c9b7
Fix build against wxWidgets older than 3.1.1
2021-03-01 10:03:49 +01:00
Lukas Matena
b10d064a24
Added an empty category icon for Fuzzy Skin to prevent crashes in ObjectList
...
The icon should later be replaced by a proper one.
2021-02-26 16:08:51 +01:00
Lukas Matena
19cfeb1a78
Fix of a crash when using active_step_add_warning on PrintObjects
...
PrintObjectBase::status_update_warnings called PrintBase::status_update_warnings, which in turn set
SlicingStatus flag to UPDATE_PRINT_STEP_WARNINGS (instead of UPDATE_PRINT_OBEJCT_STEP_WARNINGS) and
saved its own ObjectID. This led to spurious and hard to read thread-unsafe crashes.
2021-02-26 10:07:11 +01:00
Lukas Matena
3fd36f08e0
Show a notification when attempting to slice during SLA support points editing
...
This should also fix #5736 and a similar crash when deleting an object during manual editing (which was introduced between 2.2.0 and 2.3.0)
2021-02-22 16:26:16 +01:00
Lukas Matena
1904b7b904
Bugfix: custom seam did not work for triangles that were exactly vertical
...
The projection algorithm was originally made for custom supports, so vertical triangles
were not interesting. They are for seam. Instead of rewriting the algorithm and risking
more bugs, the edge case is detected and the triangle is tilted slightly.
2021-02-22 16:26:16 +01:00
Lukas Matena
bd2cbea202
Fix aligned seam when sequential printing is enabled
2021-02-22 16:26:16 +01:00
Lukas Matena
2cb3754af4
Fixed a typo in TriangleSelector.cpp (probably not causing any bug, just a warning)
2021-02-11 07:32:22 +01:00
Lukas Matena
8fbafbea87
Merge branch 'lm_warnings': Fixes lots of Clang warnings
2021-02-08 18:04:36 +01:00
Lukas Matena
a7728634f0
Clang: silence -Wdeprecated-declarations for now
...
RPi: hopefully silence a warning
2021-02-08 17:52:29 +01:00
Lukas Matena
1834ebe981
Fixing Clang warnings 3
2021-02-08 17:52:29 +01:00
Lukas Matena
b85de89751
Fixing Clang warnings 2
2021-02-08 17:52:29 +01:00
Lukas Matena
0ff0444dcc
Fixing Clang warnings 1
2021-02-08 17:52:29 +01:00
Lukas Matena
cd1322ce3f
FDM supports gizmo 'autoset by angle' improvements:
...
- Extra dialog for autosetting by angle in FDM supports gizmo was removed
- Highlighting facets by angle is now controlled by a slider in the main gizmo dialog
- User is allowed to paint even when using the slope highlighter
- The button to turn highlighted facets to blockers was removed, it made no sense
- Highlighted facets are now rendered in light blue
2021-02-08 17:49:36 +01:00
Lukas Matena
d001195ebd
Restoring custom supports/seams after reload from disk
...
Until now, the custom data were lost.
2021-02-08 09:51:49 +01:00
Lukas Matena
f3c4888291
Added a missing include
2021-02-08 08:13:22 +01:00
Lukas Matena
53539a5993
Added a missing include
2021-02-08 08:10:14 +01:00
Lukas Matena
dc4bdad84a
Fixed some more GCC warnings
2021-01-29 15:17:03 +01:00
Lukas Matena
df634a715d
Merge branch 'lm_warnings_gcc'
2021-01-29 11:07:47 +01:00
Lukas Matena
d9c9de8eee
Fixing GCC warnings 3
2021-01-29 10:47:02 +01:00
Lukas Matena
2d32c80b75
Fixing GCC warnings 2
2021-01-29 10:46:52 +01:00
Lukas Matena
b5280fbed9
Fixing GCC warnings 1
2021-01-29 10:46:33 +01:00
Lukas Matena
a5dc3c4b66
Bugfix: CLI slicer should slice in FDM mode when no printer_technology is provided.
...
This was broken between 2.2.0 and 2.3.0 (1bffc2b ) and changed the CLI behaviour.
Also related to 5029.
2021-01-19 10:29:35 +01:00
Lukas Matena
aa19870c54
Updated doc/Localization_guide.md
2021-01-15 11:53:42 +01:00
Lukas Matena
e733565031
Fix of #5632 (painter gizmos not working correctly with scaled objects)
...
This was broken since 8bcdbb7 .
2021-01-05 17:06:05 +01:00
Lukas Matena
30c8592b10
Do not use ironing extrusions for autospeed calculations ( #5082 )
2021-01-04 14:21:24 +01:00
Lukas Matena
837070a246
Hotfix of a crash with raft and one-layer object ( #5652 )
...
The problem is that PrintObject support generator is only run when m_layers.size() > 1, so one-layer object will skip it.
It apparently never worked, after recent refactoring (probably 8bfc986 ) it started to crash in GCode generator.
This commit fixes the crash, but not the problem. The raft is still not generated (like in all versions since 2.0.0 at least).
2021-01-04 14:21:24 +01:00
Lukas Matena
6cf47f3e61
Use monospace font in placeholder parser error messages (Linux fix)
...
Previous implementation did not use monospace font on Linux. According to a note
from @wavexx in ba7f39a : "wxSYS_ANSI_FIXED_FONT use the same as DEFAULT in wxGtk".
This commit uses the same workaround by actually loading the font from GUI_App.
2021-01-04 14:21:24 +01:00
Lukas Matena
1d25630508
Fix of #5606 (Force invalidation when object settings are deleted)
2021-01-04 14:21:24 +01:00
Lukas Matena
6c2ce4b6b6
Escape special xml characters when writing metadata into the model file
...
This should fix #5577
2021-01-04 14:21:24 +01:00
Lukas Matena
d2b45c282e
Bumped up version number to 2.3.0-rc2
2020-12-22 17:26:55 +01:00
Lukas Matena
78a3d8b63e
Fixed ASCII folding for non-foldable non-ASCII characters
...
Problem: Add an object, name it using cyrilic, Slice, click Export: the proposed name is mangled. Affects all platforms, 2.2.0 was fine.
Cause: It is mangled during ASCII folding, which was broken with 28c0880 when it was generalized to be used from the fuzzy matcher.
fold_to_ascii(wchar_t c, char *out) relies on narrowing char = wchar_t assignment, the old one used std::back_insert_iterator<std::wstring>.
It is thus unable to leave a character alone even when it should (it should, right?).
Solution:
1. Typed the fold_to_ascii function so it works on wchar_t only, which should mimic the old behaviour.
2. Changed the respective call in fts_fuzzy_match.h. That function also works with wide char C-strings.
Cleanup:
1. Removed the unused fold_utf8_to_ascii(const char *src) overload to avoid code duplication.
2. Untemplated the fold_to_ascii(wchar_t c, std::back_insert_iterator<std::wstring>& out) function, it was never called with a different type.
3. The function is now static in ASCIIFolding.cpp, nobody else needs to know.
2020-12-21 10:31:37 +01:00
Lukas Matena
1f5ac7d2f7
Fix of a crash on startup when creating physical printer profiles from 2.2 configs ( #5513 , #5074 )
...
The issue is that opening the wxMessageDialog in GUI_App::check_printer_presets fires wxEVT_IDLE event (on Linux at least).
At that point it is already bound to our lambda which will in turn call post_init prematurely.
The solution is to move the Bind at the very end of the initialization. The post_init that it calls assumes that init has been finished anyway.
2020-12-21 10:27:35 +01:00
Lukas Matena
b0115dca60
Fixed encoding issue in ConfigWizard on Windows ( #5422 )
2020-12-18 15:35:30 +01:00
Lukas Matena
1cbe2bd87e
Added a missing translation macro
2020-12-18 13:04:28 +01:00
Lukas Matena
8f3baeb1c9
Fix of #5410 (Ironing untick/tick bug)
...
This is a follow-up of commit b1b7a5a which fixed several similar bugs
2020-12-18 12:44:24 +01:00
Lukas Matena
5bd1a57650
Bumped up version number to 2.3.0-rc1
2020-12-17 18:07:35 +01:00
Lukas Matena
aa69730bc2
Revert recent changes in PresetUpdater error reporting
...
This reverts commits:
57ba953 ("PresetUpdater - exceptions reformatted, not throwing an exception")
03028bb ("Improved exception throwing at copy file in preset updater")
2020-12-17 16:08:51 +01:00
Lukas Matena
6e3b4b6fd8
Random seam: optimization and fix of a possible infinite loop
2020-12-17 15:48:25 +01:00
Lukas Matena
20aa8d65bf
Fix through Netfabb notification - remove 'undo' hypertext for now and
...
refuse to fix when a gizmo is opened (because of missing updates)
This is a follow-up of 1249fdb
2020-12-16 17:33:55 +01:00
Lukas Matena
acb7d66577
Linux locales detection: reject unexpected formatting
2020-12-14 22:59:11 +01:00
Lukas Matena
1249fdb71d
Remove custom supports/seams after mesh repair
...
The repair can remove some of the triangles, so the custom data would make no sense.
This will hopefully fix #5458
Also, show a notification with a hyperlink to undo just before the repair.
2020-12-14 22:59:02 +01:00
Lukas Matena
5553762d9c
Do not remove custom supports/seams when converting units to imperial
2020-12-14 20:27:19 +01:00
Lukas Matena
a5d363a9f4
Do not emit M1 gcode for firmwares other than Marlin (after MM priming)
...
The M1 gcode is apparently only supported on Marlin, others do not support it or use it for something else
This should fix #5441
2020-12-14 20:27:19 +01:00
Lukas Matena
0e6f9cdd0b
Linux: when available locales do not match the desired language completely,
...
list the installed locales and try to find an alternative
This should fix issues such as #3368 and #2580
2020-12-12 09:21:51 +01:00
Lukas Matena
d267a9a105
Fixed a typo in a tooltip
2020-12-12 09:15:01 +01:00
Lukas Matena
2d711d8646
Added missing includes for gcc
2020-12-08 12:31:59 +01:00
Lukas Matena
997ee971b4
Bugfix: custom seam identification
...
Bounding boxes of polygons could overlap. Ask the AABB tree for all possible candidates.
Might be faster than searching for the closest triangle, that requires traversing the whole depth of the tree every time.
2020-12-05 02:02:22 +01:00
Lukas Matena
985a4a8bf3
Bugfix: custom seam did not work on first layer with elephant foot compensation active
2020-12-05 00:02:43 +01:00
Lukas Matena
98434eb77b
Bugfix: seam enforcers not always respected ( #5137 , #5294 )
2020-12-05 00:02:43 +01:00
Lukas Matena
91cc119146
Added missing includes for gcc
2020-12-05 00:02:43 +01:00
Lukas Matena
3f999acef8
Added a missing include (gcc 8.4)
2020-11-28 20:51:57 +01:00
Lukas Matena
ca09bf0805
Fix random seam for single contour islands ( #5003 ) and for external_perimeters_first
2020-11-27 11:33:25 +01:00
Lukas Matena
f485f66b2a
Seam - fix indexing of layers ( #5112 , #5014 )
2020-11-27 10:09:20 +01:00
Lukas Matena
22f93a34a8
Fix horrible complexity of custom seam lookup ( #5067 )
...
- polygons are offset individually
- custom areas are kept separately for each PrintObject
- AABB tree is used to get logN lookup complexity
2020-11-27 10:09:20 +01:00
Lukas Matena
2618992c8b
Fix of an ASAN crash on app close (Linux)
2020-11-09 14:00:58 +01:00
Lukas Matena
ece27dcc42
Bumped up version number
2020-11-04 15:45:37 +01:00
Lukas Matena
ab6af3ff68
Fix of #5058 (failing build with wx3.0)
2020-11-04 11:58:45 +01:00
Lukas Matena
b84efca01e
Degree sign in FDM supports gizmo dialog:
...
The sign is used insted of 'deg' and it was moved into the slider,
to make it consistent with sliders in SLA gizmos.
2020-11-03 15:15:09 +01:00
Lukas Matena
d75ca6b76d
New icon for FDM supports gizmo
2020-11-02 08:30:33 +01:00
Lukas Matena
1130d78c19
Fix of #3505 (place on face oriented objects at slight angle sometimes)
2020-10-29 12:49:43 +01:00
Lukas Matena
0a9f316d64
Fix of #5009 (Shift+Tab shall be disabled in gcode viewer mode)
2020-10-28 10:49:04 +01:00
Lukas Matena
b27bf1815c
Renamed FDM supports and seam gizmos
2020-10-26 16:23:04 +01:00
Lukas Matena
f4311f67ef
Fix of #4969 : XDG path detection with wx3.0
2020-10-26 12:54:00 +01:00
Lukas Matena
ab6e653de4
Rendering painted triangles - increase polygon offset to avoid artifacts
2020-10-23 17:34:24 +02:00
Lukas Matena
41b3af7599
Merged PR #4553 : New gcode flavor (RepRapFirmware) using G10 temperature gcode (thanks @ardenpm)
...
Old RepRap/Sprinter remains for compatibility with older firmwares, new gcode flavor RepRapFirmware was
introduced so PS supports new versions of RRF (which deprecate M104 for temperature changes)
2020-10-23 13:30:46 +02:00
Lukas Matena
8cd13803ca
Updated the G10 RepRapFirmware pull request to current master
2020-10-23 13:27:45 +02:00
Lukas Matena
18f72d82b9
Merge branch 'pa_reprap_g10_temperature_support' of https://github.com/ardenpm/PrusaSlicer into lm_g10
2020-10-23 11:42:35 +02:00
Lukas Matena
43c6f4cb6c
Fix rendering painted triangles (not showing when viewed in direction of the normal)
2020-10-23 08:07:47 +02:00
Lukas Matena
057c8a1c1d
Changed datadir path on Linux to xdg specs (2911)
...
In case the new dir does not exist and the old one does,
show a warning to the user.
2020-10-23 07:52:11 +02:00
Lukas Matena
5670f5ffb0
Fix couple of build issues on gcc
2020-10-23 07:51:58 +02:00
Lukas Matena
d0ad098661
Fix debug build
2020-10-20 17:55:32 +02:00
Lukas Matena
81ce368e5d
Merged PR #4345 - support for DuetSoftwareSupport print host (thanks @wilriker)
2020-10-20 16:42:07 +02:00
Lukas Matena
8a88b353f3
Added missing forward declaration for gcc
2020-10-20 16:41:25 +02:00
Lukas Matena
197d2b968c
Tiny changes in the new Duet3D dsf support code
2020-10-19 17:23:13 +02:00
Lukas Matena
daeb618812
Merge branch 'add-duet-software-framework-support' of https://github.com/Duet3D/PrusaSlicer into Duet3D-add-duet-software-framework-support
2020-10-19 11:50:31 +02:00
Lukas Matena
ebcd073fd3
Removed unused include (related to #4912 )
2020-10-19 11:16:43 +02:00
Lukas Matena
a47e94ebd5
Fix of #4889 (malfunctioning single instance detection on macOS):
...
This was hapenning because the datadir did not exist yet, which was interpreted as another instance running.
2020-10-19 11:08:03 +02:00
Lukas Matena
637324d386
Do not render bed texture when looking from below the bed in hollowing gizmo
...
The same as it is for FDM/SLA supports and seam gizmos.
2020-10-16 15:56:45 +02:00
Lukas Matena
04e18025f9
Fix build on macOS
...
std::optional<T>::value() not yet available
2020-10-13 13:51:47 +02:00
Lukas Matena
f0de7f13fc
Added a missing include
2020-10-12 17:52:48 +02:00
Lukas Matena
fa74f50af1
Fixed clipping plane in painter gizmos:
...
Obsolete variable m_clipping_plane was used instead of getting the clipping plane from
the common gizmo data pool. This means the clipped parts of objects captured hits and
could not be painted through.
The clipped_mesh_was_hit variable is obsolete now. It was a mistake to introduce it in the first place.
2020-10-12 16:26:17 +02:00
Lukas Matena
92b2d624a4
Painter gizmos: only render the circle cursor when the pointer is on the mesh
...
It does not paint otherwise, let the user know by not drawing it.
2020-10-12 14:46:48 +02:00
Lukas Matena
482a58ccdc
Merge PR #7435 by @wavexx (Shift+Tab shortcut to collapse sidebar):
...
The extra commit by lukasmatena fixes toolbar tooltip updating.
2020-10-12 09:16:34 +02:00
Lukas Matena
9755f82b90
Fix of tooltip updating when sidebar is being hidden/shown
...
The tooltip would only update when the toolbar was clicked, not when respective menu item or keyboard shortcut were used
2020-10-12 09:16:08 +02:00
Lukas Matena
40121c56e9
Fixed an undo/redo problem with SLA gizmo
...
When the undo/redo stack opened the SLA gizmo, it would erroneously obliterate all future snapshots
2020-10-12 09:06:47 +02:00
Lukas Matena
6f2ea224b9
Combo in painter gizmos replaced with radios (for cursor type selection)
2020-10-10 14:02:14 +02:00
Lukas Matena
6871c2ccd8
Fixed updating of pages on startup, reverted changes from b17c829
...
The second commit should be no longer needed, the CallAfter cause crashes on Linux when switching technologies
2020-10-07 16:16:37 +02:00
Lukas Matena
c4951c5efc
Fix of a modifier transparency problem in painting gizmos
2020-10-06 14:57:31 +02:00
Lukas Matena
b42a12db66
Fixup of 8df0181 (turning off the export of machine limits)
...
This should solve #1212 for good
2020-10-06 13:31:42 +02:00