diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-10-31 19:03:33 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-10-31 19:03:33 +0300 |
commit | bf8fcabb29836321dc5252439cd1b4ead0e2537f (patch) | |
tree | 3cf0d4e0f7db4869fc372810808042306261f633 /src/slic3r/GUI/GLCanvas3D.cpp | |
parent | 418634a677b06854de30c026bb1892f24d1fe2f4 (diff) |
ENABLE_THUMBNAIL_GENERATOR -> Use orthographic camera when rendering thumbnails
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.cpp')
-rw-r--r-- | src/slic3r/GUI/GLCanvas3D.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index a49c772d3..4e36739ac 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -3627,6 +3627,7 @@ static void render_volumes_in_thumbnail(const GLVolumePtrs& volumes, ThumbnailDa } Camera camera; + camera.set_type(Camera::Ortho); camera.zoom_to_volumes(visible_volumes, thumbnail_data.width, thumbnail_data.height); camera.apply_viewport(0, 0, thumbnail_data.width, thumbnail_data.height); camera.apply_view_matrix(); |