9 Commits

Author SHA1 Message Date
remi durand
f34a3b1a6f Merge branch 'dev' into merill-merge 2021-08-08 01:06:02 +02:00
remi durand
f87b5fccde Merge remote-tracking branch 'remotes/prusa/stable' into dev
need to merge profiles
need to test & iron out the PresetConfigSubstitutions thingy
2021-07-10 15:31:19 +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
Martin Budden
48126db6e0 Remove trailing zeros from gcode feed rates. 2021-06-22 18:13:18 +02:00
Joseph Lenox
a9e32aa4ae Test the inhibition of duplicate set_speed() calls.
Shows fix for #2915
2021-04-02 21:38:28 -05:00
Joseph Lenox
f25b2b0d68 Tests for fan rescaling based on fan_percentage 2021-04-02 21:38:28 -05:00
supermerill
5fbc891707 Slic3r++ to SuperSlicer renamed in all files.
and going to version 51
2020-05-30 03:52:56 +02:00
bubnikv
d1a86e513c Fixing some GCodeExport and Flow unit tests. 2019-10-18 15:44:13 +02:00
bubnikv
de45be5f29 Ported test_gcodewriter from upstream Slic3r, thanks @lordofhyphens.
The format for G1 Fxxx was changed to fixed three decimal digits.
2019-10-15 17:35:19 +02:00