Snap in gizmo scale 3D when holding Shift pressed

This commit is contained in:
Enrico Turri 2018-11-14 12:57:12 +01:00
parent 62aa34b444
commit 4149b9ad28
4 changed files with 72 additions and 58 deletions

View file

@ -602,7 +602,7 @@ private:
bool overlay_contains_mouse(const GLCanvas3D& canvas, const Vec2d& mouse_pos) const;
bool grabber_contains_mouse() const;
void update(const Linef3& mouse_ray, const Point* mouse_pos = nullptr);
void update(const Linef3& mouse_ray, bool shift_down, const Point* mouse_pos = nullptr);
#if ENABLE_GIZMOS_RESET
void process_double_click();
#endif // ENABLE_GIZMOS_RESET