Prevent double instances of embossed text on canvas.

Fix issue 73 (use surface)
This commit is contained in:
Filip Sykala - NTB T15p 2022-10-25 13:55:09 +02:00
parent f7f4b28f73
commit 3eb09a9842

View File

@ -323,6 +323,8 @@ bool GLGizmoEmboss::on_mouse_for_translate(const wxMouseEvent &mouse_event)
ModelObject *act_model_object = act_model_volume->get_object();
m_raycast_manager.actualize(act_model_object, &condition);
m_dragging_mouse_offset = calc_mouse_to_center_text_offset(mouse_pos, *m_volume);
// Cancel job to prevent interuption of dragging (duplicit result)
if (m_update_job_cancel != nullptr) m_update_job_cancel->store(true);
return false;
}