Updated DoubleSlider band. Added smart color selection for M600

This commit is contained in:
YuSanka 2019-11-07 13:51:54 +01:00
parent c4a62819f4
commit 72852ffab5
6 changed files with 136 additions and 22 deletions

View file

@ -4995,6 +4995,17 @@ std::vector<std::string> Plater::get_extruder_colors_from_plater_config() const
return extruder_colors;
}
std::vector<std::string> Plater::get_colors_for_color_print() const
{
std::vector<std::string> colors = get_extruder_colors_from_plater_config();
for (const Model::CustomGCode& code : p->model.custom_gcode_per_height)
if (code.gcode == "M600")
colors.push_back(code.color);
return colors;
}
wxString Plater::get_project_filename(const wxString& extension) const
{
return p->get_project_filename(extension);