mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Fixed rendering of gizmos' grabbers
This commit is contained in:
parent
9605d10caa
commit
f69bd75464
5 changed files with 73 additions and 59 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue