Fixed rectangle selection while using orthographic camera

This commit is contained in:
enricoturri1966 2022-11-22 13:59:53 +01:00
parent edc499fa9c
commit dbd5e4d999

View File

@ -5682,6 +5682,7 @@ void GLCanvas3D::_rectangular_selection_picking_pass()
#if ENABLE_RAYCAST_PICKING
const Camera& main_camera = wxGetApp().plater()->get_camera();
Camera framebuffer_camera;
framebuffer_camera.set_type(main_camera.get_type());
const Camera* camera = &main_camera;
if (use_framebuffer) {
// setup a camera which covers only the selection rectangle