SLA supports gizmo bugfix: show supports when not in editing mode

The bug was introduced after 2.2.0 release
This commit is contained in:
Lukas Matena 2020-05-20 12:10:40 +02:00
parent 581892cb0d
commit ac8491b599

View file

@ -898,6 +898,7 @@ void GLGizmoSlaSupports::on_set_state()
// Set default head diameter from config.
const DynamicPrintConfig& cfg = wxGetApp().preset_bundle->sla_prints.get_edited_preset().config;
m_new_point_head_diameter = static_cast<const ConfigOptionFloat*>(cfg.option("support_head_front_diameter"))->value;
m_c->instances_hider()->show_supports(true);
}
if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off
bool will_ask = mo && m_editing_mode && unsaved_changes();