Fix for SPE-1543 - "T"- key add text to cut object with plugs/dowels

This commit is contained in:
YuSanka 2023-03-01 12:22:31 +01:00
parent 3985250b87
commit e09bdef952

View File

@ -885,7 +885,7 @@ void GLGizmoEmboss::on_set_state()
priv::get_volume(m_parent.get_selection().get_model()->objects, m_volume_id) == nullptr ) {
// reopen gizmo when new object is created
GLGizmoBase::m_state = GLGizmoBase::Off;
if (wxGetApp().get_mode() == comSimple)
if (wxGetApp().get_mode() == comSimple || wxGetApp().obj_list()->has_selected_cut_object())
// It's impossible to add a part in simple mode
return;
// start creating new object