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:
parent
20f15dad95
commit
00db58c823
@ -4935,6 +4935,8 @@ bool Plater::priv::can_increase_instances() const
|
|||||||
|| q->canvas3D()->get_gizmos_manager().is_in_editing_mode())
|
|| q->canvas3D()->get_gizmos_manager().is_in_editing_mode())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Emboss) return false;
|
||||||
|
|
||||||
int obj_idx = get_selected_object_idx();
|
int obj_idx = get_selected_object_idx();
|
||||||
return (0 <= obj_idx) && (obj_idx < (int)model.objects.size());
|
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
|
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
|
bool Plater::priv::can_layers_editing() const
|
||||||
|
Loading…
Reference in New Issue
Block a user