Disallow arrange and add instance when emboss gizmo is opend -- prevent strobo effect during editing emboss parameters.

Fix issue 40
This commit is contained in:
Filip Sykala - NTB T15p 2022-09-23 12:58:01 +02:00
parent 20f15dad95
commit 00db58c823

View File

@ -4935,6 +4935,8 @@ bool Plater::priv::can_increase_instances() const
|| q->canvas3D()->get_gizmos_manager().is_in_editing_mode())
return false;
if (q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Emboss) return false;
int obj_idx = get_selected_object_idx();
return (0 <= obj_idx) && (obj_idx < (int)model.objects.size());
}
@ -4961,7 +4963,9 @@ bool Plater::priv::can_split_to_volumes() const
bool Plater::priv::can_arrange() const
{
return !model.objects.empty() && m_worker.is_idle();
if (model.objects.empty() && m_worker.is_idle()) return false;
if (q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Emboss) return false;
return true;
}
bool Plater::priv::can_layers_editing() const