Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2021-11-10 15:44:47 +0300
committertamasmeszaros <meszaros.q@gmail.com>2021-11-19 17:08:53 +0300
commita7260e7257109e5e577b4c80a676212759004345 (patch)
tree3a4e33c9b70fa3c1b01d581a98bba09609c6c7e4 /src/libslic3r/PrintConfig.cpp
parent67373ca7221ca128b72fa0622ff1dbabda90b6e0 (diff)
Add material print speed parameter for sla printers except sl1
Diffstat (limited to 'src/libslic3r/PrintConfig.cpp')
-rw-r--r--src/libslic3r/PrintConfig.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp
index 14d48368f..18defae2c 100644
--- a/src/libslic3r/PrintConfig.cpp
+++ b/src/libslic3r/PrintConfig.cpp
@@ -165,6 +165,12 @@ static const t_config_enum_values s_keys_map_SLAPillarConnectionMode = {
};
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(SLAPillarConnectionMode)
+static const t_config_enum_values s_keys_map_SLAMaterialSpeed = {
+ {"slow", slamsSlow},
+ {"fast", slamsFast}
+};
+CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(SLAMaterialSpeed);
+
static const t_config_enum_values s_keys_map_BrimType = {
{"no_brim", btNoBrim},
{"outer_only", btOuterOnly},
@@ -3730,6 +3736,17 @@ void PrintConfigDef::init_sla_params()
def->max = 10;
def->mode = comExpert;
def->set_default_value(new ConfigOptionFloat(2.0));
+
+ def = this->add("material_print_speed", coEnum);
+ def->label = L("Print speed");
+ def->tooltip = L("lorem ipsum");
+ def->enum_keys_map = &ConfigOptionEnum<SLAMaterialSpeed>::get_enum_values();
+ def->enum_values.push_back("slow");
+ def->enum_values.push_back("fast");
+ def->enum_labels.push_back(L("Slow"));
+ def->enum_labels.push_back(L("Fast"));
+ def->mode = comAdvanced;
+ def->set_default_value(new ConfigOptionEnum<SLAMaterialSpeed>(slamsSlow));
}
void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &value)