mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Fix rendering painted triangles (not showing when viewed in direction of the normal)
This commit is contained in:
@@ -79,7 +79,7 @@ void GLGizmoPainterBase::render_triangles(const Selection& selection) const
|
|||||||
|
|
||||||
glsafe(::glEnable(GL_POLYGON_OFFSET_FILL));
|
glsafe(::glEnable(GL_POLYGON_OFFSET_FILL));
|
||||||
ScopeGuard offset_fill_guard([]() { glsafe(::glDisable(GL_POLYGON_OFFSET_FILL)); } );
|
ScopeGuard offset_fill_guard([]() { glsafe(::glDisable(GL_POLYGON_OFFSET_FILL)); } );
|
||||||
glsafe(::glPolygonOffset(-1.0, 1.0));
|
glsafe(::glPolygonOffset(-1.0, -1.0));
|
||||||
|
|
||||||
// Take care of the clipping plane. The normal of the clipping plane is
|
// Take care of the clipping plane. The normal of the clipping plane is
|
||||||
// saved with opposite sign than we need to pass to OpenGL (FIXME)
|
// saved with opposite sign than we need to pass to OpenGL (FIXME)
|
||||||
|
|||||||
Reference in New Issue
Block a user