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:
authorTon Roosendaal <ton@blender.org>2005-05-12 21:11:32 +0400
committerTon Roosendaal <ton@blender.org>2005-05-12 21:11:32 +0400
commite3c11a0bcc5a532586c238f26ee4d8962aa41eec (patch)
treed44545eaccbad164192df2a0357ffa8154c89deb /source/blender/src/transform.c
parent6bb1232b06304e9be2f0c9a830e8a5c0db4f5788 (diff)
Bugfix #2541
Using as Pivot the "individual object centers" didn't do any rotation or scaling in editmode. I think it was supposed to give some kind of 'connected' centers, for individual faces/edges rotate. That'll be some more coding work to get to work. :)
Diffstat (limited to 'source/blender/src/transform.c')
-rwxr-xr-xsource/blender/src/transform.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c
index 0219ae81a95..bf7da510cd1 100755
--- a/source/blender/src/transform.c
+++ b/source/blender/src/transform.c
@@ -1066,7 +1066,8 @@ void ElementResize(TransInfo *t, TransData *td, float mat[3][3]) {
/* local constraint shouldn't alter center */
if (G.vd->around == V3D_LOCAL || (t->con.mode & CON_LOCAL)) {
- VECCOPY(center, td->center);
+ if (t->flag & T_OBJECT)
+ VECCOPY(center, td->center); // not supported in editmode yet
}
else {
VECCOPY(center, t->center);
@@ -1433,7 +1434,8 @@ static void applyRotation(TransInfo *t, float angle, float axis[3])
/* local constraint shouldn't alter center */
if (G.vd->around == V3D_LOCAL || (t->con.mode & CON_LOCAL)) {
- VECCOPY(t->center, td->center);
+ if (t->flag & T_OBJECT)
+ VECCOPY(t->center, td->center); // not supported in editmode yet
}
if (t->con.applyRot) {
@@ -1572,7 +1574,8 @@ static void applyTrackball(TransInfo *t, float axis1[3], float axis2[3], float a
break;
if (G.vd->around == V3D_LOCAL) {
- VECCOPY(t->center, td->center);
+ if (t->flag & T_OBJECT)
+ VECCOPY(t->center, td->center); // not supported in editmode yet
}
if (t->flag & T_PROP_EDIT) {