Implemented FR #6994 - Set Number of Instances for multiple selected meshes
This commit is contained in:
parent
b71e0bfd34
commit
4d5b85e675
5 changed files with 51 additions and 30 deletions
|
@ -2145,6 +2145,16 @@ std::vector<unsigned int> Selection::get_unselected_volume_idxs_from(const std::
|
|||
return idxs;
|
||||
}
|
||||
|
||||
std::set<unsigned int> Selection::get_object_idxs() const
|
||||
{
|
||||
std::set<unsigned int> idxs;
|
||||
|
||||
for (unsigned int i : m_list)
|
||||
idxs.emplace((*m_volumes)[i]->object_idx());
|
||||
|
||||
return idxs;
|
||||
}
|
||||
|
||||
void Selection::update_valid()
|
||||
{
|
||||
m_valid = (m_volumes != nullptr) && (m_model != nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue