mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
SLA gizmo now forces objects to use their normal color (not SELECTED_COLOR)
This commit is contained in:
parent
2728e45646
commit
df01af975a
3 changed files with 19 additions and 10 deletions
|
@ -2231,8 +2231,10 @@ void GLCanvas3D::toggle_model_objects_visibility(bool visible, const ModelObject
|
|||
{
|
||||
for (GLVolume* vol : m_volumes.volumes) {
|
||||
if ((mo == nullptr || m_model->objects[vol->composite_id.object_id] == mo)
|
||||
&& (instance_idx == -1 || vol->composite_id.instance_id == instance_idx))
|
||||
&& (instance_idx == -1 || vol->composite_id.instance_id == instance_idx)) {
|
||||
vol->is_active = visible;
|
||||
vol->force_native_color = (instance_idx != -1);
|
||||
}
|
||||
}
|
||||
if (visible && !mo)
|
||||
toggle_sla_auxiliaries_visibility(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue