diff options
author | Matt Ebb <matt@mke3.net> | 2010-03-17 04:56:41 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-03-17 04:56:41 +0300 |
commit | 504a7e9d3fb202ac5353cf596f978288c84af754 (patch) | |
tree | 3b2b8d6170f025423fbfd3af33a87df4858510f3 /source | |
parent | 3c09e763c15f3ff68a3e4d2789d9812184e45224 (diff) |
Fix [#21285] Assigning an Edge Rotate (clockwise) shortcut also deletes affected faces when used
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 304bf0da577..047a8fe2ca4 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -3734,7 +3734,6 @@ static void edge_rotate(EditMesh *em, wmOperator *op, EditEdge *eed, int dir) free_editface(em, face[1]); } -// XXX ton please check /* only accepts 1 selected edge, or 2 selected faces */ static int edge_rotate_selected(bContext *C, wmOperator *op) { @@ -3742,7 +3741,7 @@ static int edge_rotate_selected(bContext *C, wmOperator *op) EditMesh *em= BKE_mesh_get_editmesh((Mesh *)obedit->data); EditEdge *eed; EditFace *efa; - int dir = RNA_int_get(op->ptr, "direction"); // dir == 2 when clockwise and ==1 for counter CW. + int dir = RNA_enum_get(op->ptr, "direction"); // dir == 2 when clockwise and ==1 for counter CW. short edgeCount = 0; /*clear new flag for new edges, count selected edges */ @@ -3822,7 +3821,7 @@ void MESH_OT_edge_rotate(wmOperatorType *ot) ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; /* props */ - RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, "direction", "direction to rotate edge around."); + RNA_def_enum(ot->srna, "direction", direction_items, DIRECTION_CW, "Direction", "Direction to rotate the edge around."); } |