From 25a7138328a2b54bc1476621bbc97ef37a65d858 Mon Sep 17 00:00:00 2001 From: Matt Keeter Date: Mon, 24 Mar 2014 19:49:11 -0400 Subject: [PATCH] Reset camera parameters after loading model --- src/canvas.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/canvas.cpp b/src/canvas.cpp index 15624da..dd645a5 100644 --- a/src/canvas.cpp +++ b/src/canvas.cpp @@ -30,6 +30,12 @@ void Canvas::load_mesh(Mesh* m) pow(m->xmax() - m->xmin(), 2) + pow(m->ymax() - m->ymin(), 2) + pow(m->zmax() - m->zmin(), 2)); + + // Reset other camera parameters + zoom = 1; + yaw = 0; + tilt = 90; + update(); delete m; -- 2.39.5