Disable "Search"/"Arrange options" ImGui dialog, when some of gizmos is active
This commit is contained in:
parent
eee4453993
commit
d681b99c10
@ -4745,7 +4745,7 @@ bool GLCanvas3D::_init_main_toolbar()
|
||||
};
|
||||
item.left.action_callback = GLToolbarItem::Default_Action_Callback;
|
||||
item.visibility_callback = GLToolbarItem::Default_Visibility_Callback;
|
||||
item.enabling_callback = GLToolbarItem::Default_Enabling_Callback;
|
||||
item.enabling_callback = [this]()->bool { return m_gizmos.get_current_type() == GLGizmosManager::Undefined; };
|
||||
if (!m_main_toolbar.add_item(item))
|
||||
return false;
|
||||
|
||||
|
@ -5015,8 +5015,7 @@ bool Plater::priv::can_split_to_volumes() const
|
||||
bool Plater::priv::can_arrange() const
|
||||
{
|
||||
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;
|
||||
return q->canvas3D()->get_gizmos_manager().get_current_type() == GLGizmosManager::Undefined;
|
||||
}
|
||||
|
||||
bool Plater::priv::can_layers_editing() const
|
||||
|
Loading…
Reference in New Issue
Block a user