[Bf-blender-cvs] [7fd93dc] master: Fix bend in object mode (wasn't rotating objects)
Campbell Barton
noreply at git.blender.org
Mon May 25 02:37:54 CEST 2015
Commit: 7fd93dc8dcdf5efbf8a50221e82dd6e59cb47f1a
Author: Campbell Barton
Date: Mon May 25 10:35:54 2015 +1000
Branches: master
https://developer.blender.org/rB7fd93dc8dcdf5efbf8a50221e82dd6e59cb47f1a
Fix bend in object mode (wasn't rotating objects)
===================================================================
M source/blender/editors/transform/transform.c
===================================================================
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 6db78a2..113c8cc 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -104,6 +104,8 @@ static void drawVertSlide(TransInfo *t);
static void len_v3_ensure(float v[3], const float length);
static void postInputRotation(TransInfo *t, float values[3]);
+static void ElementRotation(TransInfo *t, TransData *td, float mat[3][3], short around);
+
/* Transform Callbacks */
static void initBend(TransInfo *t);
@@ -2978,6 +2980,13 @@ static void Bend(TransInfo *t, const int UNUSED(mval[2]))
add_v3_v3(vec, pivot);
mul_m3_v3(td->smtx, vec);
+
+ /* rotation */
+ if ((t->flag & T_POINTS) == 0) {
+ ElementRotation(t, td, mat, V3D_LOCAL);
+ }
+
+ /* location */
copy_v3_v3(td->loc, vec);
}
More information about the Bf-blender-cvs
mailing list