mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 00:51:47 +08:00
Follow-up 9bb74d92c7
- Suppress to suggest of the "Automatic color change", if some color changes are already apply for the model
This commit is contained in:
parent
39788066e2
commit
1d145bb359
@ -705,8 +705,17 @@ void Preview::update_layers_slider(const std::vector<double>& layers_z, bool kee
|
|||||||
m_layers_slider->SetLayersTimes(print_mode_stat.layers_times, print_mode_stat.time);
|
m_layers_slider->SetLayersTimes(print_mode_stat.layers_times, print_mode_stat.time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check if ticks_info_from_model contains ColorChange g-code
|
||||||
|
bool color_change_already_exists = false;
|
||||||
|
for (const CustomGCode::Item& gcode: ticks_info_from_model.gcodes)
|
||||||
|
if (gcode.type == CustomGCode::Type::ColorChange) {
|
||||||
|
color_change_already_exists = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Suggest the auto color change, if model looks like sign
|
// Suggest the auto color change, if model looks like sign
|
||||||
if (wxGetApp().app_config->get("allow_auto_color_change") == "1" &&
|
if (!color_change_already_exists &&
|
||||||
|
wxGetApp().app_config->get("allow_auto_color_change") == "1" &&
|
||||||
m_layers_slider->IsNewPrint())
|
m_layers_slider->IsNewPrint())
|
||||||
{
|
{
|
||||||
const Print& print = wxGetApp().plater()->fff_print();
|
const Print& print = wxGetApp().plater()->fff_print();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user