Experiment with spherical cursor (painting gizmos)

This commit is contained in:
Lukas Matena 2020-09-25 09:07:52 +02:00
parent 8bf0f75e83
commit c696e6ec19
2 changed files with 7 additions and 3 deletions

View file

@ -119,6 +119,8 @@ void GLGizmoPainterBase::render_triangles(const Selection& selection) const
void GLGizmoPainterBase::render_cursor_circle() const
{
return;
const Camera& camera = wxGetApp().plater()->get_camera();
float zoom = (float)camera.get_zoom();
float inv_zoom = (zoom != 0.0f) ? 1.0f / zoom : 0.0f;