Sidebar matrix field behavior for multiple volume selection

This commit is contained in:
Enrico Turri 2018-12-18 14:08:46 +01:00
parent d6b8ed3e3e
commit 7077c1e4a1
3 changed files with 13 additions and 3 deletions

View file

@ -1478,6 +1478,14 @@ bool GLCanvas3D::Selection::is_from_single_object() const
return (0 <= idx) && (idx < 1000);
}
bool GLCanvas3D::Selection::requires_uniform_scale() const
{
if (is_single_full_instance() || is_single_modifier() || is_single_volume())
return false;
return true;
}
int GLCanvas3D::Selection::get_object_idx() const
{
return (m_cache.content.size() == 1) ? m_cache.content.begin()->first : -1;