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
diff options
context:
space:
mode:
-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;