Option "rotate view about active object" was disabled when object was in
editmode or posemode. Removed this limit so the option just always uses
active object as center, disregarding mode.
This commit is contained in:
Ton Roosendaal
2006-07-05 12:41:16 +00:00
parent b33d71749c
commit 7032a904a5

View File

@@ -561,17 +561,13 @@ void viewmove(int mode)
/* cumultime(0); */
if (G.obedit==NULL && ob && !(ob->flag & OB_POSEMODE) && U.uiflag & USER_ORBIT_SELECTION) {
if (ob && (U.uiflag & USER_ORBIT_SELECTION)) {
use_sel = 1;
VECCOPY(ofs, G.vd->ofs);
if (ob) {
obofs[0] = -ob->obmat[3][0];
obofs[1] = -ob->obmat[3][1];
obofs[2] = -ob->obmat[3][2];
}
else {
VECCOPY(obofs, ofs);
}
obofs[0] = -ob->obmat[3][0];
obofs[1] = -ob->obmat[3][1];
obofs[2] = -ob->obmat[3][2];
}
else
ofs[0] = ofs[1] = ofs[2] = 0.0f;