mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 06:55:57 +08:00
Added missed code for my last commit
This commit is contained in:
parent
ccee04cd68
commit
77dcb7f5a3
@ -2346,6 +2346,12 @@ void ObjectList::update_object_menu()
|
|||||||
|
|
||||||
void ObjectList::instances_to_separated_object(const int obj_idx, const std::set<int>& inst_idxs)
|
void ObjectList::instances_to_separated_object(const int obj_idx, const std::set<int>& inst_idxs)
|
||||||
{
|
{
|
||||||
|
if ((*m_objects)[obj_idx]->instances.size() == inst_idxs.size())
|
||||||
|
{
|
||||||
|
instances_to_separated_objects(obj_idx);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// create new object from selected instance
|
// create new object from selected instance
|
||||||
ModelObject* model_object = (*m_objects)[obj_idx]->get_model()->add_object(*(*m_objects)[obj_idx]);
|
ModelObject* model_object = (*m_objects)[obj_idx]->get_model()->add_object(*(*m_objects)[obj_idx]);
|
||||||
for (int inst_idx = model_object->instances.size() - 1; inst_idx >= 0; inst_idx--)
|
for (int inst_idx = model_object->instances.size() - 1; inst_idx >= 0; inst_idx--)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user