diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2020-03-09 17:23:29 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2020-03-09 17:23:29 +0300 |
commit | 6c36577e8e48e27a372f9a53cd2ba2a07e3a49a3 (patch) | |
tree | cb47b42bf93abc1c3d2df263ede60936e8fe36db /src/slic3r/GUI/Camera.hpp | |
parent | 6723b5f3cd2dd164971594d249682a3a11b8925a (diff) |
#3782 - World Z axis always vertical for non-free camera
Diffstat (limited to 'src/slic3r/GUI/Camera.hpp')
-rw-r--r-- | src/slic3r/GUI/Camera.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Camera.hpp b/src/slic3r/GUI/Camera.hpp index f592dbcd2..4b9144519 100644 --- a/src/slic3r/GUI/Camera.hpp +++ b/src/slic3r/GUI/Camera.hpp @@ -122,6 +122,8 @@ public: // returns true if the camera z axis (forward) is pointing in the negative direction of the world z axis bool is_looking_downward() const { return get_dir_forward().dot(Vec3d::UnitZ()) < 0.0; } + void look_at(const Vec3d& position, const Vec3d& target, const Vec3d& up); + double max_zoom() const { return 100.0; } double min_zoom() const; @@ -137,7 +139,6 @@ private: #endif // ENABLE_THUMBNAIL_GENERATOR void set_distance(double distance) const; - void look_at(const Vec3d& position, const Vec3d& target, const Vec3d& up); void set_default_orientation(); Vec3d validate_target(const Vec3d& target) const; void update_zenit(); |