Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-05 16:41:16 +0400
committerTon Roosendaal <ton@blender.org>2006-07-05 16:41:16 +0400
commit7032a904a5a1a6ff67e24b951d0d108bb33bb414 (patch)
treeed812961a4b6d2cd14b030fe68ead88a405b367b /source
parentb33d71749c04410ac12627e68135f3a48b8d63e3 (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/view.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index c8f5b0031c3..00325dbbe5c 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -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;