corrected one bug in FromTrackball function

This commit is contained in:
Nico Pietroni 2010-04-07 21:43:24 +00:00
parent 1438c44f5f
commit d32ed18e1d
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ static void FromTrackball(const vcg::Trackball & tr,
vcg::Point3<ScalarType> tra; tra.Import(tr.track.tra);
vcg::Matrix44<ScalarType> trM; trM.FromMatrix(tr.track.Matrix());
vcg::Point3<ScalarType> vp = Inverse(trM)*(sShot.GetViewPoint()-cen) +cen +tra;
vcg::Point3<ScalarType> vp = Inverse(trM)*(sShot.GetViewPoint()-cen) +cen;// +tra;
shot.SetViewPoint(vp);
shot.Extrinsics.SetRot(sShot.Extrinsics.Rot()*trM);