diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-05-16 13:06:02 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-05-16 13:06:02 +0300 |
commit | 8e31668704586dfc614746efa1c9d70cfa507282 (patch) | |
tree | 2949b0e35192324478954d3549ba9aeb354ea923 /src/slic3r/GUI/Camera.hpp | |
parent | 0eeda8e32139432a3eb417c5633a570426bfe99c (diff) |
Fixed method Vec3d Camera::get_position() const
Diffstat (limited to 'src/slic3r/GUI/Camera.hpp')
-rw-r--r-- | src/slic3r/GUI/Camera.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Camera.hpp b/src/slic3r/GUI/Camera.hpp index b9c5dfc32..6e1b539ab 100644 --- a/src/slic3r/GUI/Camera.hpp +++ b/src/slic3r/GUI/Camera.hpp @@ -58,7 +58,7 @@ public: Vec3d get_dir_up() const { return m_view_matrix.matrix().block(0, 0, 3, 3).row(1); } Vec3d get_dir_forward() const { return m_view_matrix.matrix().block(0, 0, 3, 3).row(2); } - Vec3d get_position() const { return m_view_matrix.matrix().block(0, 0, 3, 3).row(3); } + Vec3d get_position() const { return m_view_matrix.matrix().block(0, 3, 3, 1); } void apply_viewport(int x, int y, unsigned int w, unsigned int h) const; void apply_view_matrix() const; |