mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
QOL change: Don't add "_plate_0" in file name if there is only one plate in the current project
This commit is contained in:
parent
25e3944c53
commit
5eee758c9e
3 changed files with 5 additions and 3 deletions
|
@ -3034,7 +3034,7 @@ double PartPlateList::plate_stride_y()
|
|||
}
|
||||
|
||||
//get the plate counts, not including the invalid plate
|
||||
int PartPlateList::get_plate_count()
|
||||
int PartPlateList::get_plate_count() const
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
|
|
@ -614,7 +614,7 @@ public:
|
|||
int select_plate(int index);
|
||||
|
||||
//get the plate counts, not including the invalid plate
|
||||
int get_plate_count();
|
||||
int get_plate_count() const;
|
||||
|
||||
//update the plate cols due to plate count change
|
||||
void update_plate_cols();
|
||||
|
|
|
@ -6438,7 +6438,9 @@ wxString Plater::priv::get_project_filename(const wxString& extension) const
|
|||
|
||||
wxString Plater::priv::get_export_gcode_filename(const wxString& extension, bool only_filename, bool export_all) const
|
||||
{
|
||||
std::string plate_index_str = (boost::format("_plate_%1%") % std::to_string(partplate_list.get_curr_plate_index() + 1)).str();
|
||||
std::string plate_index_str;
|
||||
if (partplate_list.get_plate_count() > 1)
|
||||
plate_index_str = (boost::format("_plate_%1%") % std::to_string(partplate_list.get_curr_plate_index() + 1)).str();
|
||||
if (!m_project_folder.empty()) {
|
||||
if (!only_filename) {
|
||||
if (export_all) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue