mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 02:05:58 +08:00
Object labels in 3D scene show sequential order only for active bed
This commit is contained in:
parent
c1bef5eae0
commit
fbfccc8116
@ -6382,7 +6382,11 @@ void GLCanvas3D::_render_overlays()
|
|||||||
if (_is_sequential_print_enabled()) {
|
if (_is_sequential_print_enabled()) {
|
||||||
for (ModelObject* model_object : m_model->objects)
|
for (ModelObject* model_object : m_model->objects)
|
||||||
for (ModelInstance* model_instance : model_object->instances) {
|
for (ModelInstance* model_instance : model_object->instances) {
|
||||||
sorted_instances.emplace_back(model_instance);
|
if (auto it = s_multiple_beds.get_inst_map().find(model_instance->id());
|
||||||
|
it != s_multiple_beds.get_inst_map().end()
|
||||||
|
&& it->second == s_multiple_beds.get_active_bed()
|
||||||
|
)
|
||||||
|
sorted_instances.emplace_back(model_instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_labels.render(sorted_instances);
|
m_labels.render(sorted_instances);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user