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:
Diffstat (limited to 'src/libslic3r/PrintBase.cpp')
-rw-r--r--src/libslic3r/PrintBase.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libslic3r/PrintBase.cpp b/src/libslic3r/PrintBase.cpp
index beabfb76b..4a348022f 100644
--- a/src/libslic3r/PrintBase.cpp
+++ b/src/libslic3r/PrintBase.cpp
@@ -64,9 +64,10 @@ std::string PrintBase::output_filename(const std::string &format, const std::str
cfg.set_key_value("input_filename_base", new ConfigOptionString(filename_base));
}
try {
+ uint16_t extruder_initial = config_override->option("initial_extruder") != nullptr ? config_override->option("initial_extruder")->getInt() : 0;
boost::filesystem::path filepath = format.empty() ?
- cfg.opt_string("input_filename_base") + default_ext :
- this->placeholder_parser().process(format, 0, &cfg);
+ cfg.opt_string("input_filename_base") + default_ext :
+ this->placeholder_parser().process(format, extruder_initial, &cfg);
//remove unwanted characters
std::string forbidden_base;
if (const ConfigOptionString* opt = this->placeholder_parser().external_config()->option<ConfigOptionString>("gcode_filename_illegal_char")) {