1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-25 10:15:50 +00:00

Fixed rendering of gizmos' grabbers

This commit is contained in:
enricoturri1966
2021-05-25 15:42:22 +02:00
committed by Lukas Matena
parent 9605d10caa
commit f69bd75464
5 changed files with 73 additions and 59 deletions
+2 -4
View File
@@ -119,13 +119,11 @@ void GLGizmoSlaSupports::render_points(const Selection& selection, bool picking)
return;
GLShaderProgram* shader = picking ? nullptr : wxGetApp().get_shader("gouraud_light");
if (shader)
if (shader != nullptr)
shader->start_using();
ScopeGuard guard([shader]() {
if (shader) {
shader->set_uniform("emission_factor", 0.);
if (shader != nullptr)
shader->stop_using();
}
});
const GLVolume* vol = selection.get_volume(*selection.get_volume_idxs().begin());