[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27568] trunk/blender/source/blender/ editors/mesh/editmesh_tools.c: Fix [#21285] Assigning an Edge Rotate ( clockwise) shortcut also deletes affected faces when used

Matt Ebb matt at mke3.net
Wed Mar 17 02:56:41 CET 2010


Revision: 27568
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27568
Author:   broken
Date:     2010-03-17 02:56:41 +0100 (Wed, 17 Mar 2010)

Log Message:
-----------
Fix [#21285] Assigning an Edge Rotate (clockwise) shortcut also deletes affected faces when used

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/editmesh_tools.c

Modified: trunk/blender/source/blender/editors/mesh/editmesh_tools.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_tools.c	2010-03-17 00:54:34 UTC (rev 27567)
+++ trunk/blender/source/blender/editors/mesh/editmesh_tools.c	2010-03-17 01:56:41 UTC (rev 27568)
@@ -3734,7 +3734,6 @@
 	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 @@
 	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 @@
 	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.");
 }
 
 





More information about the Bf-blender-cvs mailing list