corrected ApplyRigidTransformation (zeroed last row of rot)
This commit is contained in:
parent
4c6fad3054
commit
99a41cf446
|
@ -487,6 +487,8 @@ void Shot<S, RotationType>::ApplyRigidTransformation(const Matrix44<S> & M)
|
||||||
// roto-translate the viewpoint
|
// roto-translate the viewpoint
|
||||||
Extrinsics.tra = M * Extrinsics.tra;
|
Extrinsics.tra = M * Extrinsics.tra;
|
||||||
Matrix44<S> newRot = rotM * M.transpose();
|
Matrix44<S> newRot = rotM * M.transpose();
|
||||||
|
newRot[3][0] = newRot[3][1] = newRot[3][2] = 0.0;
|
||||||
|
|
||||||
Extrinsics.SetRot(newRot);
|
Extrinsics.SetRot(newRot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue