diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2020-01-15 14:49:34 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2020-01-15 14:49:34 +0300 |
commit | 62e60bcb43dcf147596b5ae466afb6c04e6bcb2a (patch) | |
tree | 07efd3fa8083b8af2ef8b710c5ff1bdec27c3185 /src/slic3r/GUI/Selection.cpp | |
parent | 536514ff03fadec4fa92776f3fb81e0e9cec17ef (diff) |
Six degrees of freedom camera - 1st installment
Diffstat (limited to 'src/slic3r/GUI/Selection.cpp')
-rw-r--r-- | src/slic3r/GUI/Selection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp index 13be48289..224f5007d 100644 --- a/src/slic3r/GUI/Selection.cpp +++ b/src/slic3r/GUI/Selection.cpp @@ -2004,7 +2004,11 @@ void Selection::render_sidebar_layers_hints(const std::string& sidebar_field) co const float max_y = box.max(1) + Margin; // view dependend order of rendering to keep correct transparency +#if ENABLE_6DOF_CAMERA + bool camera_on_top = wxGetApp().plater()->get_camera().is_looking_downward(); +#else bool camera_on_top = wxGetApp().plater()->get_camera().get_theta() <= 90.0f; +#endif // ENABLE_6DOF_CAMERA float z1 = camera_on_top ? min_z : max_z; float z2 = camera_on_top ? max_z : min_z; |