mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-09 03:12:26 +00:00
Render selected objects first
This commit is contained in:
1 parent
b98659a749
commit
4987e5a7d5
1 file changed
+6
@@ -748,6 +748,12 @@ GLVolumeWithIdAndZList volumes_to_render(const GLVolumePtrs& volumes, GLVolumeCo
|
|||||||
[](const GLVolumeWithIdAndZ& v1, const GLVolumeWithIdAndZ& v2) -> bool { return v1.second.second < v2.second.second; }
|
[](const GLVolumeWithIdAndZ& v1, const GLVolumeWithIdAndZ& v2) -> bool { return v1.second.second < v2.second.second; }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
else if ((type == GLVolumeCollection::Opaque) && (list.size() > 1))
|
||||||
|
{
|
||||||
|
std::sort(list.begin(), list.end(),
|
||||||
|
[](const GLVolumeWithIdAndZ& v1, const GLVolumeWithIdAndZ& v2) -> bool { return v1.first->selected && !v2.first->selected; }
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user