From 3605289bbc60b9e27c51c07d48dc265c9be5124a Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 22 Nov 2014 23:10:18 +0100 Subject: [PATCH] --spiral-vase now automatically overrides --perimeters, --top-solid-layers and --fill-density instead of throwing incompatibility error. #2360 --- xs/src/libslic3r/Config.cpp | 1 + xs/src/libslic3r/PrintConfig.hpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/xs/src/libslic3r/Config.cpp b/xs/src/libslic3r/Config.cpp index b3fe6b877..d1c51ac53 100644 --- a/xs/src/libslic3r/Config.cpp +++ b/xs/src/libslic3r/Config.cpp @@ -361,6 +361,7 @@ DynamicConfig::opt(const t_config_option_key opt_key, bool create) { template ConfigOptionInt* DynamicConfig::opt(const t_config_option_key opt_key, bool create); template ConfigOptionBool* DynamicConfig::opt(const t_config_option_key opt_key, bool create); template ConfigOptionBools* DynamicConfig::opt(const t_config_option_key opt_key, bool create); +template ConfigOptionPercent* DynamicConfig::opt(const t_config_option_key opt_key, bool create); const ConfigOption* DynamicConfig::option(const t_config_option_key opt_key) const { diff --git a/xs/src/libslic3r/PrintConfig.hpp b/xs/src/libslic3r/PrintConfig.hpp index d408feb1b..058afdc09 100644 --- a/xs/src/libslic3r/PrintConfig.hpp +++ b/xs/src/libslic3r/PrintConfig.hpp @@ -99,6 +99,11 @@ class DynamicPrintConfig : public DynamicConfig ConfigOptionBools* opt = this->opt("retract_layer_change", true); opt->values.assign(opt->values.size(), false); // set all values to false } + { + this->opt("perimeters", true)->value = 1; + this->opt("top_solid_layers", true)->value = 0; + this->opt("fill_density", true)->value = 0; + } } }; };