Fix of (finishing slicing interfered with dragging gizmos)

This commit is contained in:
Lukas Matena 2021-09-21 09:31:15 +02:00
parent 96b88f5b29
commit a6261ff474

View file

@ -3918,20 +3918,16 @@ void Plater::priv::on_slicing_update(SlicingStatusEvent &evt)
void Plater::priv::on_slicing_completed(wxCommandEvent & evt) void Plater::priv::on_slicing_completed(wxCommandEvent & evt)
{ {
switch (this->printer_technology) { if (view3D->is_dragging()) // updating scene now would interfere with the gizmo dragging
case ptFFF: delayed_scene_refresh = true;
this->update_fff_scene(); else {
break; if (this->printer_technology == ptFFF)
case ptSLA: this->update_fff_scene();
if (view3D->is_dragging())
delayed_scene_refresh = true;
else else
this->update_sla_scene(); this->update_sla_scene();
break;
default: break;
} }
} }
void Plater::priv::on_export_began(wxCommandEvent& evt) void Plater::priv::on_export_began(wxCommandEvent& evt)
{ {
if (show_warning_dialog) if (show_warning_dialog)
@ -4050,17 +4046,13 @@ void Plater::priv::on_process_completed(SlicingProcessCompletedEvent &evt)
this->object_list_changed(); this->object_list_changed();
// refresh preview // refresh preview
switch (this->printer_technology) { if (view3D->is_dragging()) // updating scene now would interfere with the gizmo dragging
case ptFFF: delayed_scene_refresh = true;
this->update_fff_scene(); else {
break; if (this->printer_technology == ptFFF)
case ptSLA: this->update_fff_scene();
if (view3D->is_dragging())
delayed_scene_refresh = true;
else else
this->update_sla_scene(); this->update_sla_scene();
break;
default: break;
} }
if (evt.cancelled()) { if (evt.cancelled()) {