Fix of [2.4.0a] version placeholder doesn't work for output filename format #7002

This commit is contained in:
Vojtech Bubnik 2021-09-24 09:36:14 +02:00
parent 04e4aee246
commit 0c0c37b76c

View file

@ -60,6 +60,7 @@ std::string PrintBase::output_filename(const std::string &format, const std::str
DynamicConfig cfg;
if (config_override != nullptr)
cfg = *config_override;
cfg.set_key_value("version", new ConfigOptionString(std::string(SLIC3R_VERSION)));
PlaceholderParser::update_timestamp(cfg);
this->update_object_placeholders(cfg, default_ext);
if (! filename_base.empty()) {