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:
authorMartin Poirier <theeth@yahoo.com>2007-03-18 21:21:24 +0300
committerMartin Poirier <theeth@yahoo.com>2007-03-18 21:21:24 +0300
commit5297123de1b0e64788a0c21d102f21296a392ec4 (patch)
treed93d86bbb4ca808d722abf490f02d2c0f0ce816e /source/blender/src/view.c
parent31f79cf5b4fd622fbf345d8da2159f825490b849 (diff)
=== View Orbit Around Active ===
Changed to Orbit around Selection, using transform code to calculate the selection center (using Median center method).
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r--source/blender/src/view.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index bfdc76cd871..a5f8015f9cc 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -573,14 +573,13 @@ void viewmove(int mode)
obofs[1]= -obofs[1];
obofs[2]= -obofs[2];
}
- //else if (G.obedit==NULL && ob && !(ob->flag & OB_POSEMODE) && U.uiflag & USER_ORBIT_SELECTION) {
else if (ob && (U.uiflag & USER_ORBIT_SELECTION)) {
use_sel = 1;
+
VECCOPY(ofs, G.vd->ofs);
-
- obofs[0] = -ob->obmat[3][0];
- obofs[1] = -ob->obmat[3][1];
- obofs[2] = -ob->obmat[3][2];
+
+ calculateTransformCenter(V3D_CENTROID, obofs);
+ VecMulf(obofs, -1.0f);
}
else
ofs[0] = ofs[1] = ofs[2] = 0.0f;