Add restriction for simplification

Refuse outgoing during simlification.
Refuse start simplification when other Gizmo is active
Fix close after preview to revert changes
Allow change model for simplification
This commit is contained in:
Filip Sykala 2021-08-18 10:37:08 +02:00
parent 11c91d781e
commit 1e863cc031
4 changed files with 63 additions and 16 deletions

View file

@ -4283,6 +4283,12 @@ bool Plater::priv::can_fix_through_netfabb() const
bool Plater::priv::can_simplify() const
{
// is object for simplification selected
if (get_selected_object_idx() < 0) return false;
// is already opened?
if (q->canvas3D()->get_gizmos_manager().get_current_type() ==
GLGizmosManager::EType::Simplify)
return false;
return true;
}