No need to force ortho on a unit matrix

This commit is contained in:
Martin Poirier 2009-10-29 18:59:48 +00:00
parent 98527a7106
commit 9a13a84f15

@ -581,12 +581,13 @@ void initTransformOrientation(bContext *C, TransInfo *t)
case V3D_MANIP_LOCAL:
strcpy(t->spacename, "local");
if(ob)
if(ob) {
Mat3CpyMat4(t->spacemtx, ob->obmat);
else
Mat3Ortho(t->spacemtx);
} else {
Mat3One(t->spacemtx);
}
Mat3Ortho(t->spacemtx);
break;
case V3D_MANIP_VIEW: