mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-31 16:08:43 +03:00
PRUSA 2.7.0
This commit is contained in:
@@ -17,7 +17,7 @@ void PrintTryCancel::operator()() const
|
||||
size_t PrintStateBase::g_last_timestamp = 0;
|
||||
|
||||
// Update "scale", "input_filename", "input_filename_base" placeholders from the current m_objects.
|
||||
void PrintBase::update_object_placeholders(DynamicConfig &config, const std::string &default_ext) const
|
||||
void PrintBase::update_object_placeholders(DynamicConfig &config, const std::string & /* default_output_ext */) const
|
||||
{
|
||||
// get the first input file name
|
||||
std::string input_file;
|
||||
@@ -50,7 +50,7 @@ void PrintBase::update_object_placeholders(DynamicConfig &config, const std::str
|
||||
// get basename with and without suffix
|
||||
const std::string input_filename = boost::filesystem::path(input_file).filename().string();
|
||||
const std::string input_filename_base = input_filename.substr(0, input_filename.find_last_of("."));
|
||||
config.set_key_value("input_filename", new ConfigOptionString(input_filename_base + default_ext));
|
||||
// config.set_key_value("input_filename", new ConfigOptionString(input_filename_base + default_output_ext));
|
||||
config.set_key_value("input_filename_base", new ConfigOptionString(input_filename_base));
|
||||
}
|
||||
}
|
||||
@@ -66,7 +66,7 @@ std::string PrintBase::output_filename(const std::string &format, const std::str
|
||||
PlaceholderParser::update_timestamp(cfg);
|
||||
this->update_object_placeholders(cfg, default_ext);
|
||||
if (! filename_base.empty()) {
|
||||
cfg.set_key_value("input_filename", new ConfigOptionString(filename_base + default_ext));
|
||||
// cfg.set_key_value("input_filename", new ConfigOptionString(filename_base + default_ext));
|
||||
cfg.set_key_value("input_filename_base", new ConfigOptionString(filename_base));
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user