From 409d3ce47d8a4d48947c7b19fc2460fd801b742c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 29 Nov 2010 13:37:16 +0000 Subject: Added 'testmodel' function, enabled autoscaling on ui::ModelView --- src/render/camera.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/render/camera.cc') diff --git a/src/render/camera.cc b/src/render/camera.cc index 3d7c452..851ad81 100644 --- a/src/render/camera.cc +++ b/src/render/camera.cc @@ -385,6 +385,7 @@ void Camera::frustum_default(float distance, float cx, float cy) gl::rotate(-90.0f, 1.0f , 0.0f, 0.0f); gl::translate(distance + 1.0f, 0.0f, 0.0f); + camera_eye.assign(-distance - 1.0f, 0.0f, 0.0f); } void Camera::ortho() -- cgit v1.2.3