Fixed name of the exported project file to respect the object name.
This commit is contained in:
parent
991632add5
commit
73280d48ed
@ -552,7 +552,7 @@ std::string Model::propose_export_file_name() const
|
||||
for (const ModelObject *model_object : this->objects)
|
||||
for (ModelInstance *model_instance : model_object->instances)
|
||||
if (model_instance->is_printable())
|
||||
return model_object->input_file;
|
||||
return model_object->name.empty() ? model_object->input_file : model_object->name;
|
||||
return std::string();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user