diff --git a/vcg/math/shot.h b/vcg/math/shot.h index bba1d928..ab4c52c1 100644 --- a/vcg/math/shot.h +++ b/vcg/math/shot.h @@ -509,9 +509,10 @@ void Shot::ApplySimilarity( Matrix44 M) vcg::Matrix44 M2 = M; - M2 = M2 * scalefactor; - M2[3][3] = 1.0; //unnecessary, it will multiply a pure rotation - + M2 = M2 * scalefactor; // remove the rotation + M2[3][3] = 1.0; + M2[0][3] = M2[1][3] = M2[2][3] = 0; // remove the translation + rotM = rotM * M2.transpose(); Extrinsics.SetRot(rotM); }