When grabing a camera in camera view, the constraint center wasn't the center used for initgrabz, so it messed up a lot.
This commit is contained in:
Martin Poirier 2006-01-14 20:52:39 +00:00
parent 148134205f
commit 8d05e14b0f

@ -728,7 +728,10 @@ void calculateCenter(TransInfo *t)
projectIntView(t, axis, t->center2d); projectIntView(t, axis, t->center2d);
/* rotate only needs correct 2d center, grab needs initgrabz() value */ /* rotate only needs correct 2d center, grab needs initgrabz() value */
if(t->mode==TFM_TRANSLATION) VECCOPY(t->center, axis); if(t->mode==TFM_TRANSLATION) {
VECCOPY(t->center, axis);
VECCOPY(t->con.center, t->center);
}
} }
} }