Reset camera parameters after loading model
This commit is contained in:
parent
54206d3f9c
commit
25a7138328
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue