shame on me

This commit is contained in:
Gael Guennebaud 2009-08-06 14:57:38 +02:00
parent d34c5ef509
commit 2e46e9f2b4

View File

@ -911,7 +911,11 @@ Transform<Scalar,Dim,Mode>::inverse(TransformTraits hint) const
}
// translation and remaining parts
res.template corner<Dim,1>(TopRight) = - res.template corner<Dim,Dim>(TopLeft) * translation();
res.makeAffine();
if(int(Mode)!=int(AffineCompact))
{
res.template block<1,Dim>(Dim,0).setZero();
res.coeffRef(Dim,Dim) = 1;
}
return res;
}
}