SPE-1449 - Fixed object disappearing when opening Hollow or SLA support gizmos on LINUX
This commit is contained in:
parent
069d63a10c
commit
f4b935b661
1 changed files with 5 additions and 1 deletions
|
@ -135,7 +135,11 @@ void GLGizmoSlaBase::render_volumes()
|
|||
const Camera& camera = wxGetApp().plater()->get_camera();
|
||||
|
||||
ClippingPlane clipping_plane = (m_c->object_clipper()->get_position() == 0.0) ? ClippingPlane::ClipsNothing() : *m_c->object_clipper()->get_clipping_plane();
|
||||
clipping_plane.set_normal(-clipping_plane.get_normal());
|
||||
if (m_c->object_clipper()->get_position() != 0.0)
|
||||
clipping_plane.set_normal(-clipping_plane.get_normal());
|
||||
else
|
||||
// on Linux the clipping plane does not work when using DBL_MAX
|
||||
clipping_plane.set_offset(FLT_MAX);
|
||||
m_volumes.set_clipping_plane(clipping_plane.get_data());
|
||||
|
||||
for (GLVolume* v : m_volumes.volumes) {
|
||||
|
|
Loading…
Reference in a new issue