Commit Graph

15074 Commits

Author SHA1 Message Date
Vojtech Bubnik
745aa3536d Improved error reporting when importing various configuration files:
1) Slic3r::RuntimeError was replaced with ConfigurationError,
   all exceptions thrown by the configuration layer are derived
   from ConfigurationError.
2) When parsing configuration files, ConfigurationError is catched and
   rethrown extended with the file name being parsed.
2021-06-29 15:41:57 +02:00
YuSanka
3cf73f6a06 If configuration update is available, show Dialog with information about it before ConfigWizard is opened 2021-06-29 13:27:03 +02:00
rtyr
cfad1a59be
Updated SL1S bed texture. 2021-06-29 10:48:59 +02:00
YuSanka
cdbb432430 MSW specific: Fixed a crash on change of the extruder using keyboard 2021-06-28 19:31:14 +02:00
rtyr
fde3bce38c
Creality 0.1.0. Added Ender-7, Sermoon D1, CR-10 SMART 2021-06-28 19:08:20 +02:00
Vojtech Bubnik
2cbe5f760d Fixed missing include 2021-06-28 17:45:13 +02:00
Vojtech Bubnik
226bf929fb Fixed loading of system presets with incompatible system profile keys
before the "reconfigure" dialog is shown.

Replaced boost::filesystem::copy_file() with Slic3r::copy_file()
in config snapshot loading code.
2021-06-28 17:26:59 +02:00
YuSanka
14dc4c8afc Substitutions : Implemented InfoDialog 2021-06-28 17:21:41 +02:00
rtyr
3fbd5c9247
Resources for new Creality printers 2021-06-27 20:30:51 +02:00
Vojtech Bubnik
84b28a25e8 Support for forward compatibility of configurations, user and system
config bundles, project files (3MFs, AMFs). When loading these files,
the caller may decide whether to substitute some of the configuration
values the current PrusaSlicer version does not understand with
some reasonable default value, and whether to report it. If substitution
is disabled, an exception is being thrown as before this commit.
If substitution is enabled, list of substitutions is returned by the
API to be presented to the user. This allows us to introduce for example
new firmware flavor key in PrusaSlicer 2.4 while letting PrusaSlicer
2.3.2 to fall back to some default and to report it to the user.

As a preparation for PrusaSlicer 2.4.0, the new firmware_flavor
"marlinfirmware" (signifying Marlin 2.0 and newer) that is not
supported by 2.3.2 yet will default to "marlin" (signifying legacy
Marlin).

When slicing from command line, substutions are performed by default
and reported into the console, however substitutions may be either
disabled or made silent with the new "config-compatibility" command
line option.

Substitute enums and bools only.  Allow booleans to be parsed as
    true: "1", "enabled", "on" case insensitive
    false: "0", "disabled", "off" case insensitive
This will allow us in the future for example to switch the draft_shield
boolean to an enum with the following values: "disabled" / "enabled" / "limited".

Added "enum_bitmask.hpp" - support for type safe sets of options.
See for example PresetBundle::load_configbundle(...
LoadConfigBundleAttributes flags) for an example of intended usage.

WIP: GUI for reporting the list of config substitutions needs to be
implemented by @YuSanka.
2021-06-27 16:14:16 +02:00
rtyr
a53174a2fd
Removed Peopoly Clear Tough
Same as Peopoly Neo Clear.
2021-06-25 21:51:51 +02:00
Vojtech Bubnik
3c24876362 Because of a crash in PrusaSlicer 2.3.0/2.3.1 when showing an update
notification with some locales, we don't want PrusaSlicer 2.3.0/2.3.1
to show this notification. On the other hand, we would like PrusaSlicer
2.3.2 to show an update notification of the upcoming PrusaSlicer 2.4.0.
Thus we will let PrusaSlicer 2.3.2 and couple of follow-up versions
to download the version number from an alternate file until
the PrusaSlicer 2.3.0/2.3.1 are phased out, then we will revert to
the original name.
2021-06-25 17:53:31 +02:00
Vojtech Bubnik
19d38f8498 Follow-up to
Cherry-pick of 2e55898d78
    Fix of an extremely slow bridging calculation, caused by an extremely
    slow bridged area detection function, of which the results were never used.
    Fixes "slicing fails or takes too long #5974"
2021-06-25 17:24:34 +02:00
Vojtech Bubnik
a4ad186dc3 Experimental: Switching all solid infills from Rectilinear to Monotonic
for regions with Monotonic top infill type.
This should likely implement Monotonic of last layer before ironing #4939
2021-06-25 17:13:49 +02:00
Vojtech Bubnik
e06ec9d4bf Windows specific: Transactional saving of PrusaSlicer.ini to ensure
that configuration could be recovered in the case PrusaSlicer.ini
is corrupted during saving. The config is first written into a temp file
marked with a MD5 checksum. Once the file is saved, it is
copied to a backup file first, then moved to PrusaSlicer.ini.

When loading PrusaSlicer.ini fails, the backup file will be loaded
instead, however only if its MD5 checksum is valid.

The following "Fixes" comments are for github triggers. We implemented
a workaround, not a fix, we don't actually know how the data corruption
happens and why. Most likely the "Move file" Windows API is not atomic
and if PrusaSlicer crashes on another thread while moving the file,
PrusaSlicer.ini will only be partially saved, with the rest of the file
filled with nulls. We did not "fix" the issue, we just hope that our
workaround will help in majority of cases.

Fixes prusaslicer wont open 2.3 windows 10 #5812
Fixes Won't Open - Windows 10 #4915
Fixes PrusaSlicer Crashes upon opening with "'=' character not found in
line error" #2438
Fixes Fails to open on blank slic3r.ini %user%\AppData\Roaming\Slic3rPE
2021-06-25 17:04:52 +02:00
Vojtech Bubnik
2359d8f2eb Fix after cherry-picking df559decd9 2021-06-25 16:38:42 +02:00
Vojtech Bubnik
df559decd9 After issuing the color change custom G-code, which is most likely
just M600, reset the internal retract counter, so that a retract
will happen after the firmware returns from M600 to the initial position.

Fixes "Blobs on print after manual color change #6362"
2021-06-25 14:44:59 +02:00
Vojtech Bubnik
5b90033b31 Cherry-pick of 2e55898d78
Fix of an extremely slow bridging calculation, caused by an extremely
slow bridged area detection function, of which the results were never used.
Fixes "slicing fails or takes too long #5974"
2021-06-25 14:44:09 +02:00
rtyr
138508ddcf
Updated SL1S bed model. 2021-06-23 17:25:35 +02:00
rtyr
db889deea4
Updated SL1S bed model. 2021-06-23 17:24:23 +02:00
rtyr
0891203e9c
Removed Peopoly White Tough. Updated tilt times. 2021-06-23 16:21:01 +02:00
rtyr
b95553ffe1
Added new SL1S resin profiles. 2021-06-22 11:19:23 +02:00
rtyr
d96b39150f
Added new AzteQ Industrial printer, added DeltiQ 2 profiles for 0.6mm nozzle, added material ASA 275 (Spectrum), some minor setting improvements 2021-06-21 17:13:18 +02:00
rtyr
db703321be
1.3.0 Added SL1S profiles. 2021-06-21 17:01:56 +02:00
Vojtech Bubnik
dc81cae219 Bumped up version to 2.3.2-alpha0 2021-06-21 14:11:07 +02:00
Vojtech Bubnik
2a0107467f Fix of Hilbert Curve Infill: Unable to slice, PrusaSlicer not responding. #5771
Fixed by hard limiting the number of iterations of
reorder_by_two_exchanges_with_segment_flipping()
2021-06-21 14:05:46 +02:00
Vojtech Bubnik
9a71d6deb9 Fix of #4654 #5122 #5668 #5811 #5895
Fixing model import of models with nearly degenerate triangles, which
degenerate after transformation (translation or rotation).

There was certainly a bug in PrusaSlicer, however this bug was triggered
mostly by the ASCII STL files generated by OpenSCAD, likely due to insufficient
number of decimal digits when saving an ASCII STL, see
[openscad/openscad] STL export should contain single precision floats (#2651)
2021-06-21 14:03:04 +02:00
David Kocik
02f97e10a5 Merge branch 'dk_home' into stable 2021-06-17 10:52:59 +02:00
David Kocik
4146f1a62e fix of #6588 - using same copy function for updating presets as for exporting gcode 2021-06-17 10:52:15 +02:00
Vojtech Bubnik
f60f08fc64 Workaround of boost::filesystem::copy_file() incompatibility
on some file systems (eCrypt ...)
Should fix #4716 #6588
2021-06-17 10:52:15 +02:00
David Kocik
32d0c90218 more debug message for copy_file_linux() 2021-06-17 10:52:15 +02:00
David Kocik
d6084621b2 debug log in copy_file_linux 2021-06-17 10:52:15 +02:00
David Kocik
7b506bc3cf Merge branch 'dk_prusalink' into stable 2021-06-17 10:51:31 +02:00
David Kocik
246c559916 prusalink: bug fixes of physical printer dialog, start print after upload, accept both OctoPrint and PrusaLink as validation string 2021-06-17 10:50:34 +02:00
YuSanka
80f4571cd7 PhysicalPrinterDialog : Update of the HostType in respect to the selected printers 2021-06-17 10:50:34 +02:00
David Kocik
725e60d006 PrusaLink class 2021-06-17 10:50:34 +02:00
rtyr
51f33ddf98
SL1S texture, bed, thumbnail 2021-06-16 19:36:23 +02:00
rtyr
1bcf4f0817
Anycubic 0.0.10 2021-06-09 08:57:55 +02:00
David Kocik
f78051aefd Merge branch 'dk_notif_stable' into stable 2021-06-08 10:59:30 +02:00
David Kocik
a30f9f6781 fix of infinite loop in notification lines calulating #6583
fix of infinite loop in notification lines calulating
2021-06-08 10:11:54 +02:00
rtyr
5b706b98f4
Artillery 0.0.3 Fixed Genius bed size. 2021-06-06 00:26:20 +02:00
rtyr
94243ab5ac
Added new TriLAB resource files.
https://github.com/prusa3d/PrusaSlicer/pull/6592
2021-06-04 12:15:03 +02:00
rtyr
4bb958f575
CR-10 SMART and SERMOON D1 thumbnails 2021-06-03 14:24:44 +02:00
rtyr
cf6c4b2a05
Artillery 0.0.2 - Fixed start g-code. 2021-06-02 12:30:30 +02:00
rtyr
90fd22f85f
Improved SL1 thumbnail. 2021-06-01 12:53:06 +02:00
rtyr
32ec4aa652
Creality 0.0.17
Updated start g-code. Added specific start g-code for straingauge printers. Improved output filename format. Added filament profile.
2021-06-01 09:09:59 +02:00
rtyr
8c5dafa2dd
Updated MK3S thumbnail 2021-05-27 11:09:18 +02:00
rtyr
542f830c95
Creality 0.0.16, PR 1.2.5 2021-05-25 15:03:13 +02:00
David Kocik
14efdca4b4 Notifications: Calculating space left for hypertext with escaped text 2021-05-20 16:32:07 +02:00
rtyr
dfa11781c3
Anycubic i3 MEGA S bed model and texture 2021-05-03 15:50:14 +02:00