diff options
author | supermerill <merill@fr.fr> | 2022-03-24 15:29:09 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2022-03-27 23:37:32 +0300 |
commit | 612e1441f9559a367a66877d86c05bbccea02115 (patch) | |
tree | 76fb63cd33e36511730f714e70764488efedda81 /src/libslic3r/PrintConfig.cpp | |
parent | aea089f956e22e823514b6c0e3ea8ac0e0f99946 (diff) |
correctly convert resolution to not-0 value when importing prusa config.
supermerill/SuperSlicer#2568
Diffstat (limited to 'src/libslic3r/PrintConfig.cpp')
-rw-r--r-- | src/libslic3r/PrintConfig.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index a78a2e239..18c913ae5 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -6912,6 +6912,12 @@ std::map<std::string,std::string> PrintConfigDef::from_prusa(t_config_option_key value = "50%"; } } + if ("resolution" == opt_key) { + value = "0.0125"; + } + if ("gcode_resolution" == opt_key) { + output["min_length"] = value; + } return output; } |