Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_gcode_viewer
This commit is contained in:
commit
a74fa7f019
@ -101,10 +101,14 @@ void GLGizmoFdmSupports::render_triangles(const Selection& selection) const
|
|||||||
|
|
||||||
glsafe(::glPushMatrix());
|
glsafe(::glPushMatrix());
|
||||||
glsafe(::glMultMatrixd(trafo_matrix.data()));
|
glsafe(::glMultMatrixd(trafo_matrix.data()));
|
||||||
glsafe(::glColor4f(0.2f, 0.2f, 1.0f, 0.5f));
|
|
||||||
m_ivas[mesh_id][0].render();
|
// Now render both enforcers and blockers.
|
||||||
glsafe(::glColor4f(1.f, 0.2f, 0.2f, 0.5f));
|
for (int i=0; i<2; ++i) {
|
||||||
m_ivas[mesh_id][1].render();
|
if (m_ivas[mesh_id][i].has_VBOs()) {
|
||||||
|
glsafe(::glColor4f(i ? 1.f : 0.2f, 0.2f, i ? 0.2f : 1.0f, 0.5f));
|
||||||
|
m_ivas[mesh_id][i].render();
|
||||||
|
}
|
||||||
|
}
|
||||||
glsafe(::glPopMatrix());
|
glsafe(::glPopMatrix());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -448,6 +452,7 @@ void GLGizmoFdmSupports::update_vertex_buffers(const ModelVolume* mv,
|
|||||||
iva.push_triangle(3*triangle_cnt, 3*triangle_cnt+1, 3*triangle_cnt+2);
|
iva.push_triangle(3*triangle_cnt, 3*triangle_cnt+1, 3*triangle_cnt+2);
|
||||||
++triangle_cnt;
|
++triangle_cnt;
|
||||||
}
|
}
|
||||||
|
if (! m_selected_facets[mesh_id].empty())
|
||||||
iva.finalize_geometry(true);
|
iva.finalize_geometry(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user