From 7a79b95c4c76e75f724c5221b4044df3cf53d461 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 3 May 2014 12:18:18 +0300 Subject: [PATCH] Set depth clip in View3D::view_all --- source/3d/view.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/3d/view.cpp b/source/3d/view.cpp index b833605..ef03c4b 100644 --- a/source/3d/view.cpp +++ b/source/3d/view.cpp @@ -70,6 +70,7 @@ void View3D::view_all(bool tight) GL::Vector3 center = (minp+maxp)/2.0f; const GL::Vector3 &look = camera.get_look_direction(); camera.set_position(center-look*dist); + camera.set_depth_clip(dist*0.02, dist*50); } void View3D::render() -- 2.45.2