templated Point3 to scalar at line 355

This commit is contained in:
Nico Pietroni 2015-09-14 12:03:19 +00:00
parent b0e9f8abef
commit 0371a3c5be
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ static void PerVertexMatrix(ComputeMeshType &m, const Matrix44<ScalarType> &mat,
if(remove_scaling){ if(remove_scaling){
scale = pow(mat33.Determinant(),(ScalarType)(1.0/3.0)); scale = pow(mat33.Determinant(),(ScalarType)(1.0/3.0));
Point3f scaleV(scale,scale,scale); Point3<ScalarType> scaleV(scale,scale,scale);
Matrix33<ScalarType> S; Matrix33<ScalarType> S;
S.SetDiagonal(scaleV.V()); S.SetDiagonal(scaleV.V());
mat33*=S; mat33*=S;