Fixed rectangle selection while using orthographic camera
This commit is contained in:
parent
edc499fa9c
commit
dbd5e4d999
@ -5682,6 +5682,7 @@ void GLCanvas3D::_rectangular_selection_picking_pass()
|
|||||||
#if ENABLE_RAYCAST_PICKING
|
#if ENABLE_RAYCAST_PICKING
|
||||||
const Camera& main_camera = wxGetApp().plater()->get_camera();
|
const Camera& main_camera = wxGetApp().plater()->get_camera();
|
||||||
Camera framebuffer_camera;
|
Camera framebuffer_camera;
|
||||||
|
framebuffer_camera.set_type(main_camera.get_type());
|
||||||
const Camera* camera = &main_camera;
|
const Camera* camera = &main_camera;
|
||||||
if (use_framebuffer) {
|
if (use_framebuffer) {
|
||||||
// setup a camera which covers only the selection rectangle
|
// setup a camera which covers only the selection rectangle
|
||||||
|
Loading…
Reference in New Issue
Block a user