corrected rarely used setview in gui.h

This commit is contained in:
Paolo Cignoni 2018-04-23 09:35:20 +02:00
parent ffc93b5169
commit 21d49e900e
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ template <class T> void View<T>::SetView(const float *_proj,
viewport[i] = _viewport[i]; viewport[i] = _viewport[i];
} }
matrix = proj*model; matrix = proj*model;
inverse = matrix; inverse = vcg::Inverse(matrix);;
Invert(inverse);
} }
template <class T> Point3<T> View<T>::ViewPoint() const { template <class T> Point3<T> View<T>::ViewPoint() const {