Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-01-29 16:44:03 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-01-29 16:44:03 +0300
commitda3cb30b7cc3106d8f0b7e0e176eac3fac32f3a2 (patch)
tree145ac8a9ba3f0ae06f4c303423f1bb3c419c3007 /src/slic3r/GUI/Camera.cpp
parent7156ed998727a32827af938d048e0f14c06ada6e (diff)
Follow-up of 17a6b696e7a4b94d49e09b8598b0343a3c2ddd40 -> Fixed build when tech ENABLE_6DOF_CAMERA is disabled
Diffstat (limited to 'src/slic3r/GUI/Camera.cpp')
-rw-r--r--src/slic3r/GUI/Camera.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Camera.cpp b/src/slic3r/GUI/Camera.cpp
index 4eaa5a9e3..a4eccf050 100644
--- a/src/slic3r/GUI/Camera.cpp
+++ b/src/slic3r/GUI/Camera.cpp
@@ -502,16 +502,16 @@ void Camera::rotate_local_around_pivot(const Vec3d& rotation_rad, const Vec3d& p
m_view_matrix.rotate(Eigen::AngleAxisd(rotation_rad(2), get_dir_forward()));
translate_world(center);
}
+#endif // ENABLE_6DOF_CAMERA
double Camera::min_zoom() const
{
#if ENABLE_6DOF_CAMERA
return 0.7 * calc_zoom_to_bounding_box_factor(m_scene_box);
#else
- return 0.7 * calc_zoom_to_bounding_box_factor(m_scene_box, (int)m_viewport[2], (int)m_viewport[3]);
+ return 0.7 * calc_zoom_to_bounding_box_factor(m_scene_box, m_viewport[2], m_viewport[3]);
#endif // ENABLE_6DOF_CAMERA
}
-#endif // ENABLE_6DOF_CAMERA
std::pair<double, double> Camera::calc_tight_frustrum_zs_around(const BoundingBoxf3& box) const
{