From 73280d48ed13604eca2de28e6037ca9193cd4cd7 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 31 Jan 2019 09:08:40 +0100 Subject: [PATCH] Fixed name of the exported project file to respect the object name. --- src/libslic3r/Model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index 86bd0d03b..fd814976a 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -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(); }