mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 17:39:04 +08:00
Fix [scale] from being assigned to [year] placeholder
[year] in output filename format results in blank file name (Issue #2349)
This commit is contained in:
parent
1779fc0e1d
commit
5342ad8990
@ -37,7 +37,7 @@ void PrintBase::update_object_placeholders(DynamicConfig &config, const std::str
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
config.set_key_value("year", new ConfigOptionStrings(v_scale));
|
config.set_key_value("scale", new ConfigOptionStrings(v_scale));
|
||||||
if (! input_file.empty()) {
|
if (! input_file.empty()) {
|
||||||
// get basename with and without suffix
|
// get basename with and without suffix
|
||||||
const std::string input_filename = boost::filesystem::path(input_file).filename().string();
|
const std::string input_filename = boost::filesystem::path(input_file).filename().string();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user