Tech ENABLE_GLBEGIN_GLEND_REMOVAL - GLSelectionRectangle rectangle

This commit is contained in:
enricoturri1966 2022-01-20 14:34:19 +01:00
parent 18e2cc2298
commit f6f95808cc
3 changed files with 70 additions and 4 deletions

View file

@ -107,6 +107,7 @@ void GLGizmoMove3D::on_render()
glsafe(::glLineWidth((m_hover_id != -1) ? 2.0f : 1.5f));
#if ENABLE_GLBEGIN_GLEND_REMOVAL
auto render_grabber_connection = [this, &center](unsigned int id) {
if (m_grabbers[id].enabled) {
if (!m_grabber_connections[id].model.is_initialized() || !m_grabber_connections[id].old_center.isApprox(center)) {
@ -137,6 +138,7 @@ void GLGizmoMove3D::on_render()
m_grabber_connections[id].model.render();
}
};
#endif // ENABLE_GLBEGIN_GLEND_REMOVAL
if (m_hover_id == -1) {
#if ENABLE_GLBEGIN_GLEND_REMOVAL