mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-17 15:04:38 +03:00
Fixed rendering of gizmos' grabbers
This commit is contained in:
committed by
Lukas Matena
parent
9605d10caa
commit
f69bd75464
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user