Simplify gizmo now renders the volume by itself,
it does not rely on the usual GLVolume rendering. GLCanvas3D::toggle_model_object_visibility was extended to hide a single volume. Rendering the model and wireframe uses the same vertex buffer, which is now used through GLModel class. GLGizmoRenderTransparent class should no longer be needed. GLCanvas3D::reload_scene calls replaced with request_rerender.
This commit is contained in:
parent
50ea144b84
commit
ba56a79795
6 changed files with 63 additions and 99 deletions
|
@ -483,7 +483,7 @@ void GLGizmosManager::render_painter_gizmo() const
|
|||
if (!m_enabled || m_current == Undefined)
|
||||
return;
|
||||
|
||||
auto *gizmo = dynamic_cast<GLGizmoTransparentRender*>(get_current());
|
||||
auto *gizmo = dynamic_cast<GLGizmoPainterBase*>(get_current());
|
||||
assert(gizmo); // check the precondition
|
||||
gizmo->render_painter_gizmo();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue