mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
New selection -> Keep selection after instance inscrease/decrease command
This commit is contained in:
@@ -2094,6 +2094,10 @@ void Plater::increase_instances(size_t num)
|
|||||||
p->update();
|
p->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ENABLE_EXTENDED_SELECTION
|
||||||
|
p->get_selection().add_instance(obj_idx, (int)model_object->instances.size() - 1);
|
||||||
|
#endif // ENABLE_EXTENDED_SELECTION
|
||||||
|
|
||||||
p->selection_changed();
|
p->selection_changed();
|
||||||
|
|
||||||
// $self->schedule_background_process;
|
// $self->schedule_background_process;
|
||||||
@@ -2137,6 +2141,12 @@ void Plater::decrease_instances(size_t num)
|
|||||||
}
|
}
|
||||||
|
|
||||||
p->update();
|
p->update();
|
||||||
|
|
||||||
|
#if ENABLE_EXTENDED_SELECTION
|
||||||
|
if (!model_object->instances.empty())
|
||||||
|
p->get_selection().add_instance(obj_idx, (int)model_object->instances.size() - 1);
|
||||||
|
#endif // ENABLE_EXTENDED_SELECTION
|
||||||
|
|
||||||
p->selection_changed();
|
p->selection_changed();
|
||||||
|
|
||||||
// $self->schedule_background_process;
|
// $self->schedule_background_process;
|
||||||
|
|||||||
Reference in New Issue
Block a user