Bugfix #3787
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user