diff --git a/vcg/math/shot.h b/vcg/math/shot.h index 6dab45db..c7783ffc 100644 --- a/vcg/math/shot.h +++ b/vcg/math/shot.h @@ -477,11 +477,11 @@ void Shot::ApplyRigidTransformation(Matrix44 & M) Extrinsics.tra = M * Extrinsics.tra; // nullify translation - //M.ElementAt(0,3) = 0; - //M.ElementAt(1,3) = 0; - //M.ElementAt(2,3) = 0; + M.ElementAt(0,3) = 0; + M.ElementAt(1,3) = 0; + M.ElementAt(2,3) = 0; - Extrinsics.rot = M.transpose() * rotM; + Extrinsics.rot = rotM * M.transpose(); }