diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-05-11 23:58:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-05-11 23:58:46 +0400 |
commit | e459d5518ec2ac19e22e480e685ca8c1fbd318f8 (patch) | |
tree | da06bdb518a368fed8440314162a09be310ced99 /source/blender/src/transform_orientations.c | |
parent | 96486b356f7d035a7abc835adbef850c3f314264 (diff) |
transform manipulator didnt follow the active face in some cases, also rotate about active mixed with normal did not work as it did in 2.45, where the active edge could be used
as a rotation
axis (this is quite useful)
Diffstat (limited to 'source/blender/src/transform_orientations.c')
-rw-r--r-- | source/blender/src/transform_orientations.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/transform_orientations.c b/source/blender/src/transform_orientations.c index 5c35a80c43f..301ac8aa248 100644 --- a/source/blender/src/transform_orientations.c +++ b/source/blender/src/transform_orientations.c @@ -379,16 +379,16 @@ int getTransformOrientation(float normal[3], float plane[3], int activeOnly) { EditMesh *em = G.editMesh; EditVert *eve; + EditSelection ese; float vec[3]= {0,0,0}; /* USE LAST SELECTED WITH ACTIVE */ - if (activeOnly && em->selected.last) + if (activeOnly && EM_get_actSelection(&ese)) { - EditSelection *ese = em->selected.last; - EM_editselection_normal(normal, ese); - EM_editselection_plane(plane, ese); + EM_editselection_normal(normal, &ese); + EM_editselection_plane(plane, &ese); - switch (ese->type) + switch (ese.type) { case EDITVERT: result = ORIENTATION_VERT; |