mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 00:16:02 +08:00
Fixed incorrectly displayed custom supports and seams in the support and seam gizmos after 7377fc34acef999774333466db18858a1dae5512.
This commit is contained in:
parent
d0411223be
commit
b32202e597
@ -113,9 +113,12 @@ void GLGizmoPainterBase::render_triangles(const Selection& selection, const bool
|
|||||||
{
|
{
|
||||||
const ModelObject* mo = m_c->selection_info()->model_object();
|
const ModelObject* mo = m_c->selection_info()->model_object();
|
||||||
|
|
||||||
|
ScopeGuard offset_fill_guard([&use_polygon_offset_fill]() {
|
||||||
|
if (use_polygon_offset_fill)
|
||||||
|
glsafe(::glDisable(GL_POLYGON_OFFSET_FILL));
|
||||||
|
});
|
||||||
if (use_polygon_offset_fill) {
|
if (use_polygon_offset_fill) {
|
||||||
glsafe(::glEnable(GL_POLYGON_OFFSET_FILL));
|
glsafe(::glEnable(GL_POLYGON_OFFSET_FILL));
|
||||||
ScopeGuard offset_fill_guard([]() { glsafe(::glDisable(GL_POLYGON_OFFSET_FILL)); });
|
|
||||||
glsafe(::glPolygonOffset(-5.0, -5.0));
|
glsafe(::glPolygonOffset(-5.0, -5.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user