Commit Graph

9759 Commits

Author SHA1 Message Date
tamasmeszaros
6d349dd3a7 Backport hollowing optimization into stable 2022-06-02 09:04:36 +02:00
tamasmeszaros
b3f7f64ee0 Avoid error on osx for tbb parallel for
Add comment to previous change
2022-06-02 09:04:35 +02:00
Slicer
879a03fda4 Changed http::ca_file_supported function to return false for OSX. 2022-06-02 09:03:52 +02:00
tamasmeszaros
e2007e41ba Try to fix linking of expat 2022-06-02 09:03:52 +02:00
tamasmeszaros
97a9c1ae1d Revamp CURL integration. Exclude it from APPLE 2022-06-02 09:03:52 +02:00
tamasmeszaros
b458477d13 Use upstream expat, remove duplication in deps and src
Fix clash of builtin findEXPAT with config scripts
2022-06-02 09:03:52 +02:00
Lukáš Hejl
d107c47b0a Fixed infill polygons filtering for Arachne to mimic filtering in the classic perimeter generator. 2022-06-01 21:43:01 +02:00
Lukáš Hejl
e631ac171a Fixed a crash when the number of perimeters is set to zero with Arachne. 2022-06-01 21:43:01 +02:00
Lukáš Hejl
c76c497234 Renamed slicing engine to perimeter generator and slightly rearrangement of Arachne parameters. 2022-06-01 21:43:00 +02:00
Lukáš Hejl
3942cf958c Updated Arachne with Cura master. 2022-06-01 21:41:40 +02:00
Lukáš Hejl
454e6496ce Added concentric infill generated using Arachne. 2022-06-01 21:41:39 +02:00
Lukáš Hejl
ac23a369d5 Fixed a missing infill caused by int32_t overflow. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
2cf6a9630f Fixed a crash when functions for preprocessing input polygons produced intersecting polygons. It should also fix another crash caused by a missing twin edge in the post-processing Voronoi diagram (probably some issue in Voronoi diagram post-processing, not in Boost Voronoi generator). 2022-06-01 21:40:15 +02:00
Lukáš Hejl
9896721bc8 Fixed crash when Arachne produced empty output. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
d868261399 Updated the default values for wall_add_middle_threshold and wall_split_middle_threshold, which should decrease the number of missing tiny islands. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
7e52650430 Fixed extrusion width calculation. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
8616758354 Added greedy sort for ExtrusionLine in the perimeter generator. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
66a18fb60f Fixed undefined behavior in SkeletalTrapezoidation::generateExtraRibs. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
3610afd393 Updated Arachne with Cura master. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
e99b579f93 Fixed integer overflow in LinearAlg2D::isInsideCorner(). 2022-06-01 21:40:15 +02:00
Lukáš Hejl
b97c05176a Modified method Line::intersection_infinite() to return that the intersection was not found if the input lines are near parallel, and an integer overflow would occur when saving the intersection coordinates. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
324e889d5e Fixed inconsistent extrusion width between layers when it is used Arachne. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
5db91f1944 Added detection for a missing Voronoi vertex. If the missing Voronoi vertex is detected, try to resolve it by rotation input polygons. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
adf2d21c67 Allowed "Slicing engine" and all Arachne parameters to be settable per object. 2022-06-01 21:40:15 +02:00
Lukáš Hejl
556e2b71cc Initial port of Arachne from Cura. 2022-06-01 21:40:13 +02:00
Lukáš Hejl
4015a83acb Added a possibility into thick_polyline_to_extrusion_paths() to separately set tolerance for merging two following lines based on a difference between lines width. 2022-06-01 21:39:23 +02:00
Lukáš Hejl
bcd20650bf Added anchors for the Lightning infill to better connect the infill and perimeters. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
79b8acb7d5 Fixed assert in Lightning infill (merging empty BoundingBoxes). 2022-06-01 21:35:58 +02:00
Lukáš Hejl
a5270f3c5a Fixed another crash in Lightning infill. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
76deba7e97 Parallelized DistanceField::DistanceField() and Layer::getBestGroundingLocation() in Lightning infill. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
be291fd97e Refactored Lightning infill before parallelization. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
5205753787 Refactored Lightning infill to get rid of unnecessary std::list and std::unordered_map, which was slow. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
3e5272868d Fixed an issue that some trees in the Lightning infill weren't connected to perimeters. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
331da74510 Fixed function lineSegmentPolygonsIntersection() in the Lightning infill that wasn't returns the intersection point.
It fixed the issue that sometimes the Lightning infill produced extrusions that hung in the air without proper support.
2022-06-01 21:35:58 +02:00
Lukáš Hejl
11004b4bbd Added cancellation to Lightning infill. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
78f62bfddc Fix of #8227 (Lightning infill wasn't working when "Combine infill every X layers" was set to a different value than one.) 2022-06-01 21:35:58 +02:00
Lukáš Hejl
dfb7fbbd10 Fixed missing layers of Lightning infill. 2022-06-01 21:35:58 +02:00
Lukáš Hejl
8d0dd13144 Fixed a crash in Lightning infill. 2022-06-01 21:35:58 +02:00
Lukas Matena
ada55053d8 Fixed MSVC debug assert in lightning infill (invalidated iterator) 2022-06-01 21:35:58 +02:00
Lukáš Hejl
bbb7e839a0 Fixed various issues in the ported Lightning infill.
Added export to SVG for TreeNode.
Also was finalized integration of Lightning infill and Lightning infill was enabled.
2022-06-01 21:35:58 +02:00
Lukáš Hejl
8e19c945ae Bumped up version to 2.5.0-alpha1 2022-05-19 13:04:38 +02:00
Lukas Matena
1a4ce039da Fix of #8175: crash with Import SL1 in some cases
- do not process non-existing file, report as error
- cancelling the dialog is not an error, but a check in finalize() is needed
- fixed some localization issues (serious btw: the ToStdString returned "" in one of the cases, which would in turn ignore the error and proceed as if if did not happen)
- reset err in reset(), just to be sure
2022-04-13 12:33:25 +02:00
Lukas Matena
3b94494c4f Fix of #8186: incorrect count of toolchanges reported:
broken for o long time, probably since 58a811a
2022-04-12 13:39:14 +02:00
Lukas Matena
6288ec4bf0 Fix of #8171: Two Chinese characters added into the range to load for ImGui 2022-04-11 12:10:16 +02:00
YuSanka
ed71887e35 Fix for #8122 - When you change setting with a blank project and go to exit it will ask you to save blank project, if you don't "save", prusa slicer wont' shut down
and #8076 - PrusaSlicer-2.4.1 does not close with no 3D-Model loaded and unsafed
2022-04-11 12:09:30 +02:00
YuSanka
a248490507 Fix for #7905 - Segfault when changing printer after loading 3mf with a different printer set
Update searcher only before open one of next dialogs : SearchDialog, UnsavedChangesDialog or DiffPresetDialog.
But only Search dialog respects to the mode of PrusaSlicer
2022-04-11 12:09:30 +02:00
Vojtech Bubnik
aef0c5a83c Follow-up to 68b6672907
Fixed detection of config data at the end of gcode files
G-code as config file was not imported correctly because end of windows
stile end of lines (CRLF) were not processed correctly.
See the file at #8172
2022-04-08 14:28:12 +02:00
enricoturri1966
68b6672907 Fixed detection of config data at the end of gcode files 2022-04-08 09:41:26 +02:00
Vojtech Bubnik
6a67a6e21b Fix of #8170: Seemingly the OSX finder calls the "open files" callback
on PrusaSlicer too early now on some newest platforms, where the
application is not yet fully initialized. This fix postpones loading of
files in that case.
2022-04-07 15:52:33 +02:00
YuSanka
8a8d2d15b0 Fix for #8156 - Automatic color change for logo crashes PrusaSlicer with second object of 0.2mm height 2022-04-04 11:42:10 +02:00
Lukas Matena
6a5443dad2 Yet another fixup of previous commit 2022-04-01 11:30:03 +02:00
Lukas Matena
037a866f22 Fixup of previous commit:
the previous fix only works for objects that have equal height
2022-04-01 09:54:49 +02:00
YuSanka
05e94eb0ab Fixed hard crash on "Convert from/to units" when several objects are selected
This crash was caused by commit https://github.com/prusa3d/PrusaSlicer/commit/38b877635
2022-04-01 09:48:38 +02:00
Lukas Matena
2ecfdea070 Fix of #7711, #7903, #8044 (wipe tower refusing to slice when layer height modifier is used):
Same settings of the layer height modifier does not guarantee to always produce profiles
exactly equal numerically. This is broken since 71ba15b.
2022-03-31 10:47:19 +02:00
enricoturri1966
b0b65a1f89 SPE-1208 - Fix for 3mf from another SW is loaded as a project and not as geometry 2022-03-23 17:20:54 +01:00
enricoturri1966
f970741dd4 Do not show ProjectDropDialog when drag and dropping a 3mf file produced by other softwares and the plater is not empty 2022-03-23 17:20:50 +01:00
enricoturri1966
fab6619641 #8032 - GCodeProcessor - Fixed parsing of LAYER_CHANGE tag for spiral vase mode 2022-03-23 17:17:23 +01:00
Lukas Matena
dc14ae07a6 Fixed incorrect handling of 3rd party 3MFs in SLA mode (#6100 and others) 2022-03-23 17:16:17 +01:00
Lukas Matena
92a40d32ff Fix of #8078: double free on wxProgressDialog on Linux 2022-03-23 17:12:42 +01:00
Lukas Matena
62cc48188d Fix background color in InfoDialog on older macOSes (#3775, #7603) 2022-03-07 16:43:21 +01:00
Lukas Matena
34a0f6d970 Bumped up version to 2.4.1-rc1 2022-03-03 11:16:57 +01:00
enricoturri1966
b4c11dfc83 SPE-1202 - Fixed project name after loading a 3mf file whose path contains diacritics by double clicking (might be a fix of #7681, #7173 and #7845) 2022-02-25 14:11:06 +01:00
Vojtech Bubnik
97fb6d22dd Follow-up to 8aefe3fc90
Suppress the G-code find / replace substitutions for the non-G-code
    sections (comment blocks) at the start and at the end of the G-code file.
This commit extends the suppressed blocks for G-code find / replace
to placeholders for initial / final M73 commands and over the trailing
G-code comments.
Fixes gcode substitution: replacing comments removes initial and final M73 commands
2022-02-25 12:20:33 +01:00
Lukas Matena
d3e7a9613e Fix of cut gizmo: contour placed incorrectly with elevated objects 2022-02-23 11:01:02 +01:00
Lukáš Hejl
dbc3cfc004 Fixed an issue that, in some cases, an inner brim was not generated. 2022-02-22 12:39:10 +01:00
Vojtech Bubnik
8aefe3fc90 Fix of gcode_substitutions will cause errors in prusaslicer_config dump at the end of gcode #7952
Suppress the G-code find / replace substitutions for the non-G-code
sections (comment blocks) at the start and at the end of the G-code file.
2022-02-21 11:04:43 +01:00
Vojtech Bubnik
6937b34fdc get_wraped_wxString(): Wrapping on '\' on Windows.
Deleting all G-code substitutions: Added a Cancel button.
2022-02-21 09:59:51 +01:00
Lukáš Hejl
945bebd224 Follow-up to e20d041fc9: Fixed a wrong calculation of indices when object instances were used.
Also, it was fixed polygon intersection detection, which was not working when a polygon intersected another polygon by only one edge.
2022-02-18 16:45:50 +01:00
Lukáš Hejl
5d72f18dc6 Follow-up to a4ecf2f2a6. Refactoring of the function for removing duplicate points. 2022-02-16 09:20:45 +01:00
Lukáš Hejl
eef741b095 Fixed a copy-paste typo that could lead to duplicate edges in MMU_Graph in the multi-material segmentation. 2022-02-16 09:20:41 +01:00
Vojtech Bubnik
3e9e3fd102 Follow-up to 58d64bae77
Disabled check for "G92 E0" in layer change G-code for other firmware types
than Marlin 2 and Marlin Legacy. We don't know whether other firmware
flavors are sensitive to E axis accumulation error and we know that
RepRapFirmware is not.

Fixes #7846
2022-02-14 15:11:19 +01:00
Vojtech Bubnik
a062a889d8 Follow-up to a1746e3e66
Fix for #7849 - "Save Project" command doesn't work properly
2022-02-14 14:13:48 +01:00
enricoturri1966
14b7d36070 #7906 - Port of 296041da38 'Fixed 'Export as .stl' scaling not applied on scaled object instances' 2022-02-14 13:58:43 +01:00
YuSanka
d0b694daff Linux specific: Fixed a bug focusing of the some settings tabs
Steps to repro of a bug:
1. FFF/SLA printer is selected
2. Load 3mf projet with SLA/FFF printer
3. Chnage printer to the FFF/SLA
=> (Print a Filanemt Settings)/(Print a Materials Settings) are disabled

Notes: This issue appeared after https://github.com/prusa3d/PrusaSlicer/commit/bfce4f6, when find_toplevel_parent(plater) instead of plater was set as a parent for ProgressDialogs
2022-02-08 17:19:30 +01:00
Lukáš Hejl
a4ecf2f2a6 Replaced smooth_outward in multi-material segmentation with a function that removes duplicate points with angle threshold. It should fix #7838 and #6892.
The main contribution of the smooth_outward function for multi-material segmentation was the removal of duplicate points in polygons using MutablePolygon::remove_duplicates().
But the issue with this function is that it deletes points only based on their distances, which could cause problems like in #7838.
2022-02-07 13:38:22 +01:00
YuSanka
9ea7427ce7 Fix for #7887 - [UI] Add Settings > Layers and Perimeters - some options have non distinct labels
+ Fixed build warning
2022-02-07 13:21:11 +01:00
YuSanka
a1746e3e66 Fix for #7849 - "Save Project" command doesn't work properly
Don't update saved presets on
   * preset selection
   * initialization of PresetCollection
, but update them on
   * load another project
   * initialization of an application
2022-02-07 11:59:39 +01:00
Lukáš Hejl
e20d041fc9 Fixed an issue with a gap in brim when inner brim was used.
This gap still can appear for holes that contain another object.
Also fixed an issue that a huge outer brim can overflow into holes of another object.
2022-02-07 10:48:52 +01:00
YuSanka
874da0281d Fixed SPE-1192
Wrong list of SLA-materials, when no SLA-printer is installed, but 3MF with SLA print is loaded
2022-02-07 10:00:49 +01:00
YuSanka
6667852d92 DiffPresetsDialog: Added info line for truncated option values.
Related to #7852 - Compare Filament Dialog: Values are truncated
2022-02-02 12:44:36 +01:00
YuSanka
fc59a2c1b0 Implemented FR #7850 - G-Code Substitutions: move [X Delete all] button or ask for confirmation
+ MsgDialog:
* Added processing if the wxNO_DEFAULT and wxCANCEL_DEFAULT flags
* Next improvements of get_wraped_wxString() function
2022-02-02 12:44:36 +01:00
enricoturri1966
1fb41a8e22 #4881 - #5073 - #6336 - GCodeProcessor::AxisCoords using doubles in place of floats 2022-02-02 11:22:45 +01:00
Lukas Matena
5c616c5931 Sync to 2.4.1-beta1 2022-02-01 14:16:13 +01:00
Lukas Matena
ebb9041041 Merge branch 'master' into stable - no conflicts fixed 2022-02-01 14:15:18 +01:00
Vojtech Bubnik
9dae482e12 Bumped up version to 2.4.1-beta1 2022-02-01 10:03:22 +01:00
Vojtech Bubnik
be60775077 get_wraped_wxString(): Adapted to work with UTF8 2022-01-31 16:25:20 +01:00
YuSanka
ba82cfa9e3 Follow-up to e3ef90941f - next improvements for get_wraped_wxString 2022-01-31 14:37:53 +01:00
Vojtech Bubnik
56e189943f Follow-up to 3e7a4d4648
Allowed for localization of error messages.
2022-01-31 11:27:32 +01:00
Vojtech Bubnik
e3ef90941f Hopefully fixed get_wraped_wxString() and did not introduce new bugs. 2022-01-31 11:09:13 +01:00
YuSanka
1a57db092f Print Settings: "Output options": Switched a places of "Post-processing scripts" and "G-code substitutions" 2022-01-31 10:19:09 +01:00
Vojtech Bubnik
58d64bae77 Fix of #6336 #5073: Throw an error if G92 E0 is missing in layer change
G-code with relative extruder addressing. Also thrown an error,
if G92 E0 is used with absolute extruder addressing.
2022-01-31 10:19:01 +01:00
YuSanka
de8ba0e850 MsgDialog: get_wraped_wxString(): Fixed a bug in case, when string is break on slash 2022-01-31 09:28:00 +01:00
YuSanka
ea84a46cdc G=code substitutions: Debugger: Fixed wxWidgets assert when new substitution is added
+ Fixed representation of the gcode_substitution in DiffDialog and UnsavedChangesDialog
2022-01-29 11:16:28 +01:00
Oleksandra Yushchenko
ddb14fa7f9
MSW specific: Highlighted text for the default buttons in dialog. Related to https://github.com/prusa3d/PrusaSlicer/issues/7564 (#7830) 2022-01-28 17:16:04 +01:00
YuSanka
07a27c9e2d G-code substitutions: Added path to helper
Fixed a bugs:
* Notes wasn't correctly save to 3mf
* Button "Delete All" wasn't hidden when last substitution was deleted
2022-01-28 17:11:27 +01:00
YuSanka
0ffc27dbe1 GCode substitutions: Added UI ("Notes" editor) to the changed format of gcode_substitutions 2022-01-28 14:01:26 +01:00
Vojtech Bubnik
a103336c8c Fix of Opening a previous version of PrusaSlicer damages configuration #7780
PrusaSlicer writes its version into "version" field of PrusaSlicer.ini
on start, unfortunately it used to do it too early, before the
"configuration invalid, reconfigure" dialog was shown to the user.
If user refused, the version was still written into PrusaSlicer.ini,
which lead to a newer slicer thinking the configuration is outdated.
2022-01-28 11:31:22 +01:00
Slic3rPE
f14ec5e9ae Command key sign in hints 2022-01-28 11:03:51 +01:00
Vojtech Bubnik
7da4bebe7a WIP GCode substitutions: Changed the format of gcode_substitutions by
adding an empty comment as a fourth parameter to each substitution.
In the future, we will provide a UI to show / edit the comment.
2022-01-27 17:02:16 +01:00
Lukas Matena
12cebddce6 Replace Ctrl -> Cmd in hints on Apple. 2022-01-27 16:48:24 +01:00
enricoturri1966
a690f7825c Fixed warning 2022-01-27 12:45:03 +01:00
YuSanka
f79bdbe61e G-code substitutions: Use WarningDialog/ErrorDialog instead of throw RuntimeError during value validation 2022-01-26 15:40:08 +01:00
Vojtech Bubnik
9828abb443 GCode find/replace: Another try to make a sensible "default" behavior
with the boost::regex implementation:
With no "single line", don't accept new lines with a dot '.'.
2022-01-26 13:57:30 +01:00
Vojtech Bubnik
e83d89dee7 Fix of escape_strings_cstyle(), which did not enclose a single word
string containing semicolon ';' character into quotes.
2022-01-26 13:18:52 +01:00
YuSanka
35bc327127 Follow-up to a7520f47a6 " add IU for "Match single line" 2022-01-25 17:26:21 +01:00
Vojtech Bubnik
a7520f47a6 GCodeFindReplace: Implemented perl's "match single line" option
to the back-end.
2022-01-25 16:28:18 +01:00
Lukas Matena
ed508d49d6 Changed the inner seam replacement threshold to 3*nozzle_diameter 2022-01-25 15:40:28 +01:00
Lukas Matena
b86effada0 Fixed one possible crash and a warning 2022-01-25 15:40:28 +01:00
Lukas Matena
9e23795137 Trying to make the inner seam placement a bit more intelligent:
place external seams first, then place inner seam using the normal seam placement
function, only limited to vicinity of the closest external seam.
2022-01-25 15:40:27 +01:00
Lukas Matena
3cc907b361 Seams: changed the overhang penalty calculation, it might have been too much compared to the rest
Also reduced penalty for flat surfaces a bit, based on some testing (hopefully it is not overfitting on the test models)
2022-01-25 15:40:27 +01:00
Lukas Matena
689f923aaf Seam fixes:
- turned off staggering
- fixed a bug in one of the heuristics (distance between indices measured instead of actual distance)
2022-01-25 15:40:27 +01:00
Vojtech Bubnik
79a0345201 Further GCodeFindReplace adjustmnets of regular expressions:
match_single_line: ^$ will NOT match \n
2022-01-25 10:36:30 +01:00
Vojtech Bubnik
6817120932 GCodeFindReplace: Removed boost::match_not_dot_newline | boost::match_not_dot_null 2022-01-25 09:40:24 +01:00
Lukas Matena
cb99d491af Fix of a possible locales mismatch during GCode export
There is a mysterious issue with GCode annotations printed with decimal
commas instead of points. tbb threads should be set to "C" locales when started,
either another thread is spawned by tbb, or someone switches the thread locales
and leaves it in the pool.
2022-01-24 16:21:21 +01:00
enricoturri1966
337d7ffaf6 Follow-up of 0e173e3f82 - Further code optimization 2022-01-24 10:43:49 +01:00
enricoturri1966
39fa0b3c46 Fixed wrong cut contours shown by gizmo cut (SPE-1177) 2022-01-24 09:36:44 +01:00
enricoturri1966
0e173e3f82 Refactoring of lambda extract_move_id() to improve performance of method GCodeViewer::load_toolpaths() 2022-01-24 08:51:19 +01:00
YuSanka
959804c80c Fixed a use of uninitialized variables reported by MemorySanitizer 2022-01-21 16:54:18 +01:00
YuSanka
c9dbc1cbba Localization: Added missed phrases -> Updated POT and dictionaries for CZ, PL, IT, ES, DE, FR
+ Command to remove obsolite lines is added to gettext_concat_wx_po_with_po and gettext_merge_po_with_pot scripts
+ POs for CA, KR, NL, BR, RU, TR, UK, ZH are merged with new POT
+ Updated all MO files
2022-01-21 15:31:01 +01:00
YuSanka
fa9a0beec7 Follow-up to 1dffc40f - Save app_config every time a "restore_win_position" is changed
Fix for cases witch are described in https://github.com/prusa3d/PrusaSlicer/issues/2939#issuecomment-1017730712
2022-01-21 11:17:14 +01:00
Lukas Matena
d2664ea295 Fixed crashes with specific configuration of draft shield:
the crashing cases were:
- skirts=0 + dsEnabled
- skirt_height=0 + dsLimited

Also, when ooze_prevention is enabled with multiple extruders and skirt is disabled, 2.4.0 does not generate infinite skirt.
Version 2.3.3 does, ooze prevention overrides the disabled skirt. This commit reinstates the old behaviour.

The issues were introduced in b466f18.
2022-01-21 11:07:18 +01:00
Lukáš Hejl
6fed5c29a1 Fixed use of an uninitialized variable in GLGizmoPainterBase::update_raycast_cache(). 2022-01-20 15:31:53 +01:00
YuSanka
d1523d2a6b Localization: Updated POT and dictionaries for CZ, PL, IT, ES, DE, FR
+ Fixed phrases in Tab.cpp, hints.ini, NotificationManager.cpp
+ POs for CA, KR, NL, BR, RU, TR, UK, ZH are merged with new POT
+ Updated all MO files
2022-01-20 14:18:55 +01:00
YuSanka
c932936b68 Fix of warnings 2022-01-20 14:18:55 +01:00
David Kocik
86c49163f8 latin-2 for Hungarian in imgui
#5479
2022-01-20 14:17:02 +01:00
enricoturri1966
803d797bd7 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_gcode_z_offset 2022-01-20 13:46:03 +01:00
YuSanka
ded855d0c2 Fix for #7781 - Entering value in Thumbnail setting causes PrusaSlicer to crash
Follow-up 106e520a - During code refactoring "thumbnails" option wasn't correctly processed
2022-01-20 10:07:26 +01:00
Lukáš Hejl
e0883910dd Added a missing include (Clang 12 without PCH). 2022-01-19 20:39:28 +01:00
Lukas Matena
06cca525d0 Added a missing include for gcc 2022-01-19 15:16:46 +01:00
YuSanka
667842ec8b Implemented get_wraped_wxString() to wrap the message text inside the MessageDialog and RichMessageDialog 2022-01-19 15:16:18 +01:00
YuSanka
6b83ded669 LockButton: Deleted unnecessary call of UpdateDarkUI()
+ Added some smarter update on SetLock()
2022-01-19 15:16:18 +01:00
enricoturri1966
ab171441aa Follow-up of 4b4d1c2f2a - Restored line deleted by mistake 2022-01-19 13:26:58 +01:00
enricoturri1966
4b4d1c2f2a #7773 - Fixed GCodeReader::parse_line_internal() to skip whitespaces between axis digit and axis value 2022-01-19 12:08:00 +01:00
enricoturri1966
76ce53f095 Tech ENABLE_Z_OFFSET_CORRECTION - Correction of toolpaths zs when z offset is set 2022-01-18 15:53:59 +01:00
YuSanka
2cc20594a4 Localization: Updated POT
+ Fixed some phrases in Preferences and Hints
+ fixed #7588 - Typo in new help feature in 2.4.0
2022-01-17 13:42:35 +01:00
YuSanka
f497ba7bf0 Follow-up to 99f510d4 - fixed a typo 2022-01-17 12:29:47 +01:00
YuSanka
106e520a10 Invalidate print when G-code substitution is changed
+ DiffDialog: Fixed get_string_value() for "gcode_substitution"
+ some code refactoring :
    For PresetCollection added is_independent_from_extruder_number_option(opt_key)
    to check if option is from the list of options with vector variable, which is independent from number of extruders
2022-01-17 12:29:47 +01:00
YuSanka
3a81dd5c5a Completed UI for G-code find & replace 2022-01-17 12:29:47 +01:00
YuSanka
8a387fc52d WIP: First IU implementation for G-code substitutions 2022-01-17 12:29:47 +01:00
Vojtech Bubnik
aa62868ccb WIP G-code find & replace: Unit tests and some bug fixes. 2022-01-17 12:29:47 +01:00
Vojtech Bubnik
2da3d80a62 Fixing compilation on non-MSVC. 2022-01-17 12:29:46 +01:00
Vojtech Bubnik
d4fd95bd4a WIP: G-code find & replace: Support for non-regular expression,
whole word and case insensitive search.
2022-01-17 12:29:46 +01:00
Vojtech Bubnik
add1e994fa WIP G-code Find-Replace: Optimize regexps, process complete G-code,
not only G-code of layers.
2022-01-17 12:29:46 +01:00
Vojtech Bubnik
658f01b64b WIP: G-code find / replace using a new gcode_substitutions PrintConfig
parameter.
2022-01-17 12:29:46 +01:00
Lukáš Hejl
c54b8908dd Follow-up of 878dce1fdf. 2022-01-17 12:25:02 +01:00
Lukáš Hejl
878dce1fdf Workaround for "Internal compiler error" in 32-bit MSVC (19.29.30037) compiler after dc00f0bf98. 2022-01-17 12:22:19 +01:00
David Kocik
76abbe97f6 fix of of unchecked substr in Upload Dialog
possible fix of #7681
2022-01-17 11:14:30 +01:00
enricoturri1966
9190810c1f Fixed volume transparency when changing volume type 2022-01-17 08:04:07 +01:00
Lukas Matena
200cbd165f Changed texts in the new 'crashed when restoring position' dialog 2022-01-14 17:26:19 +01:00
Lukas Matena
c28615cfcb Bumped up version number to 2.4.1-alpha0 2022-01-14 12:09:52 +01:00
Lukáš Hejl
dc00f0bf98 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.
2022-01-14 00:59:25 +01:00
enricoturri1966
7ab39f6255 Fixed warning 2022-01-13 08:08:40 +01:00
enricoturri1966
d9c7855c39 Fixed tooltips for imgui sliders in GLGizmoHollow 2022-01-12 15:49:13 +01:00
enricoturri1966
0cb0f56a80 Tech ENABLE_ENHANCED_PRINT_VOLUME_FIT set as default 2022-01-12 14:12:13 +01:00
enricoturri1966
243f5c38ee Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT set as default 2022-01-12 13:36:31 +01:00
YuSanka
cd159ef298 Fix for #7734 - Saving Dialog: Values are truncated
Info line was "lost" after big code refactoring 4cdcfe60

+ MsgDialog: Added missed include
2022-01-12 12:55:20 +01:00
enricoturri1966
b4308f4245 Tech ENABLE_MODIFIERS_ALWAYS_TRANSPARENT set as default 2022-01-12 12:35:36 +01:00
Vojtech Bubnik
123fc13123 Fixing perl tests. 2022-01-12 11:46:51 +01:00
YuSanka
090a424c1a Fix for detection of the DoubleSlicer mode 2022-01-12 11:21:57 +01:00
YuSanka
5a2925466d Follow-up to 1dffc40f32 - Fixed a message text.
+Improved context of the MessageDialogs. We can use hyperlinks now.
2022-01-12 11:19:59 +01:00
YuSanka
1dffc40f32 Follow-up to 010fbded1a - Save app_config before a place of potential crash + fixed non-MSW build 2022-01-11 14:22:40 +01:00
YuSanka
010fbded1a Added "Restore window position on start" option to the "Preferences > General"
+ added crash detection for the cases, when PrusaSlicer is started from secondary display

Possible fix for part of:
 #2939 - PrusaSlic3r freezing at startup (Win 10)
and
 #5573 - PrusaSlicer won't launch on secondary monitor. Nahimic?
2022-01-11 13:53:25 +01:00
Vojtech Bubnik
a591d9e9fe Implemented new placeholders for output file name:
1) "initial_filament_type", "printing_filament_types" - really useful
   for multi-material prints

the two other are not so useful, they may become useful once
the output file name template will support not yet defined
vector variables:
2) "initial_tool", "initial_extruder" - zero based index of first extruder
3) "num_printing_extruders" - number of printing extruders.

Fixes Filename incorrect when exporting G-Code with MMU. Always refers filament type in extruder 1 #5300
Fixes Export Filename nicht richtig #7673
Fixes wrong filename - always Filament in from the first extruder #7684
2022-01-10 17:57:03 +01:00
Vojtech Bubnik
4ebfe58352 Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2022-01-10 15:24:27 +01:00
Vojtech Bubnik
07d0484e32 Fix of Empty G1 before starting bridging perimeter #7714 2022-01-10 15:24:19 +01:00
David Kocik
411acf7332 followup on 16fd7cd5d1
cleanup
2022-01-10 14:38:58 +01:00
David Kocik
16fd7cd5d1 Fix of conversion of strings in Print host queue dialog 2022-01-10 14:34:35 +01:00
Lukas Matena
da8e4b6fda Some more beautifications 2022-01-10 12:56:03 +01:00
Lukas Matena
85f98b880a Hide min feedrate from machine limits page for RRF (which does not use them) 2022-01-10 12:52:21 +01:00
Lukas Matena
b3726f1f88 Fixed RRF time estimate,
so it does not use  min feedrate limits from previously selected printer (RRF itself does not support them)
2022-01-10 12:52:21 +01:00
Lukas Matena
f3e14865e5 Minor tweaks in machine limits handling:
- renamed some variables so the names are not misleading
- improved readability a bit
- disabled silent mode for RRF (it was apparently enabled by mistake)
- set default value of machine_limits_usage to TimeEstimateOnly
2022-01-10 12:52:21 +01:00
n8bot
bfb721f302 Add compatibility for Machine Limits and RRF (PR #7347) 2022-01-10 12:52:21 +01:00
Vojtech Bubnik
c5d1e2449c Fix of #7583: Wizard crashes due to accessing undefined AppConfig section. 2022-01-10 08:26:33 +01:00
tamasmeszaros
ce81c02049 Fixing corrupted SLA pad
fixes SPE-1157
2022-01-07 10:09:20 +01:00
David Kocik
747cf8a0fe partial fix of #7583
Disabled sending of system message at shutdown on OSX Sierra and older.
2022-01-06 15:00:45 +01:00
enricoturri1966
ac90d3d5c2 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_spiral_vase_layers 2022-01-06 14:08:18 +01:00
YuSanka
2b66a81ee1 Preferences: Changed tooltip for the "Suppress to open hyperlink in browser"
+ Show "PrusaSlicer: Don't ask me again" dialog when "Remember my choice" is checked in "PrusaSlicer: Open hyperlink" dialog
+ Ignore suppress of hyperlink for menu items
+ Code refactoring for OptionsGroup::launch_browser() => use common wxGetApp().open_browser_with_warning_dialog().
2022-01-06 13:55:40 +01:00
enricoturri1966
e031001f0a Follow-up of d2e495c700 - Fixed other warnings 2022-01-06 13:29:28 +01:00
enricoturri1966
3c43d0ae43 Follow-up of ffe678e0ea - Re-enabled 'Export to STL' command for modifiers 2022-01-06 13:00:36 +01:00
enricoturri1966
d2e495c700 Fixed warning 2022-01-06 12:34:00 +01:00
enricoturri1966
7ed80e0a8d Tech ENABLE_SPIRAL_VASE_LAYERS - 1st installment - Per-layer preview for spiral vase mode 2022-01-06 11:43:05 +01:00
YuSanka
19f919eca1 Implementation of the Preferences option "Ask for unsaved changes in project" 2022-01-06 10:39:12 +01:00
David Kocik
3f14484eca Moved Odaki's implemetation of searching for end of utf8 sequence to separate function.
+ Fix of 0xC0 in trailer bytes 
followup on fff862a5ae
2022-01-05 14:45:56 +01:00
odaki
fff862a5ae Fix garbled text in Hint
Fixed a problem where CJK characters at the end or beginning of a line were sometimes not displayed correctly.
2022-01-05 14:44:22 +01:00
enricoturri1966
8d638a77e5 Refactoring of GLCanvas3D::check_volumes_outside_state() to prevent assert while using SLA printer 2022-01-05 11:17:39 +01:00
Lukáš Hejl
1aac99b809 Fix of #7618 (Crash in the multi-material segmentation when a negative volume was used on painted areas of a model.) 2022-01-05 11:11:29 +01:00
enricoturri1966
ba643fa5fa Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2022-01-05 10:23:55 +01:00
enricoturri1966
ffe678e0ea #7647 - Re-enabled 'Export to STL' command for volumes. It was working in 2.3.3 and got disabled somehow. 2022-01-05 10:23:48 +01:00
YuSanka
9bbcfb80b1 Some beatification for Sliced Info: "Used Filament" is moved to the first place 2022-01-05 09:47:34 +01:00
YuSanka
7d6d98cd0f MSW-specific: FirmwareDialog: Fixed color of the text when firmware flashing is done
+ Deleted some commented code
2022-01-05 09:40:39 +01:00
Vojtech Bubnik
3aad2a9f4a Cancelling "fix by netfabb" may leave output file handler to a temp file
opened. This is fixed now.

Fixes Memory leak when exporting to netfabb and cancelling #7632
2022-01-04 17:29:24 +01:00
YuSanka
b5c45762c9 Follow up to 229df98386 - fixed non-MSW builds 2022-01-04 17:16:16 +01:00
YuSanka
229df98386 MSW specific: Highlight a focused buttons
Fix for #7564 - Button in focus is not highlighted anymore in PS 2.4 (accessibility issue)
2022-01-04 16:39:10 +01:00
YuSanka
34d9fbdc35 Fixes for localization of the PrusaSlicer - 2.4.0
* Added some missed phrases.
* Added some missed files to the list.txt
* Fix for https://github.com/prusa3d/PrusaSlicer/issues/7114 - Reword of the "Ask for unsaved changes..."

* Fix for https://github.com/prusa3d/PrusaSlicer/issues/7542 - Added localization for default buttons Yes/No
  Note: For some default buttons/labels/dialogs/... is used localization in wxWidgets.
        But dictionaries have to contain this strings, otherwise texts wouldn't be localized.
        "wxWidgets/local" contains dictionaries for all this default phrases.
        So, a copy of this field is added as a "wx_local" field to the "resources/localization" field.
        And a "gettext_concat_wx_po_with_po" script is written to concatenate strings from wx_local/lang_code.po to resources/localization/lang_code/PrusaSlicer_lang_code.po.
        So, to create a MO file from updated PO we have to execute "gettext_concat_wx_po_with_po" and only then execute a "gettext_po_to_mo" script.
2022-01-04 16:31:27 +01:00
enricoturri1966
0df7efe462 #7550 - Fixed error message when trying to import an invalid stl for commands 'Reload from disk' and 'Replace with STL' 2022-01-04 09:57:45 +01:00
Lukas Matena
a554f1fb08 One more speedup of place on face 2022-01-03 16:29:26 +01:00
Lukas Matena
b034402912 Fix of slow place on face on complex models #7587 2022-01-03 15:20:14 +01:00
Vojtech Bubnik
215e845c31 Fixed FDM support generator for object layers lower than minimum
layer height enabled for an extruder.
2021-12-21 16:57:35 +01:00
Vojtech Bubnik
15d95e4264 Fix of Can't add Filament in RC2 #7544 2021-12-21 13:20:47 +01:00
Vojtech Bubnik
53af2fc0b8 Fixed crash in send system info dialog due to empty prerelease string. 2021-12-21 10:34:55 +01:00