corrected ApplyRigidTransformation (zeroed last row of rot)

This commit is contained in:
ganovelli 2011-10-28 14:20:27 +00:00
parent 4c6fad3054
commit 99a41cf446
1 changed files with 2 additions and 0 deletions

View File

@ -487,6 +487,8 @@ void Shot<S, RotationType>::ApplyRigidTransformation(const Matrix44<S> & M)
// roto-translate the viewpoint
Extrinsics.tra = M * Extrinsics.tra;
Matrix44<S> newRot = rotM * M.transpose();
newRot[3][0] = newRot[3][1] = newRot[3][2] = 0.0;
Extrinsics.SetRot(newRot);
}