Fixed name of the exported project file to respect the object name.

This commit is contained in:
bubnikv 2019-01-31 09:08:40 +01:00
parent 991632add5
commit 73280d48ed

View File

@ -552,7 +552,7 @@ std::string Model::propose_export_file_name() const
for (const ModelObject *model_object : this->objects) for (const ModelObject *model_object : this->objects)
for (ModelInstance *model_instance : model_object->instances) for (ModelInstance *model_instance : model_object->instances)
if (model_instance->is_printable()) 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(); return std::string();
} }