diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-05-25 03:35:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-05-25 03:37:09 +0300 |
commit | 7fd93dc8dcdf5efbf8a50221e82dd6e59cb47f1a (patch) | |
tree | ec4cef7867bab5a04d76dc0c2cecb9ce7b2b0f19 | |
parent | fe9ce6603cb9db74d33a28fe11de64fa35d08d0f (diff) |
Fix bend in object mode (wasn't rotating objects)
-rw-r--r-- | source/blender/editors/transform/transform.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 6db78a226e8..113c8cc723a 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); } |