mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Sidebar matrix field behavior for multiple volume selection
This commit is contained in:
parent
d6b8ed3e3e
commit
7077c1e4a1
3 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue