Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-23 06:48:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-23 06:48:05 +0400
commit4c4389f6a42ebfe0140de8d1892d9990aa592980 (patch)
tree1f2c72e1fc815661e2e69da8deaed5099d47ddaf /source/blender/editors/mesh
parent792f536b368067fd27d0eefbe1bf6c91123220f4 (diff)
code cleanup: remove editbutflag flag from toolsettings & related defines.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index e40a60203af..da475f9bdf4 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -82,7 +82,6 @@ static void add_normal_aligned(float nor[3], const float add[3])
static int edbm_subdivide_exec(bContext *C, wmOperator *op)
{
- ToolSettings *ts = CTX_data_tool_settings(C);
Object *obedit = CTX_data_edit_object(C);
BMEditMesh *em = BMEdit_FromObject(obedit);
int cuts = RNA_int_get(op->ptr, "number_cuts");
@@ -103,7 +102,7 @@ static int edbm_subdivide_exec(bContext *C, wmOperator *op)
BM_mesh_esubdivideflag(obedit, em->bm, BM_ELEM_SELECT,
smooth, fractal,
- ts->editbutflag | flag,
+ flag,
cuts, 0, RNA_enum_get(op->ptr, "quadcorner"),
RNA_boolean_get(op->ptr, "quadtri"),
TRUE, RNA_int_get(op->ptr, "seed"));
@@ -2742,7 +2741,7 @@ static int edbm_knife_cut_exec(bContext *C, wmOperator *op)
if (mode == KNIFE_MIDPOINT) numcuts = 1;
BMO_slot_int_set(&bmop, "numcuts", numcuts);
- BMO_slot_int_set(&bmop, "flag", B_KNIFE);
+ BMO_slot_int_set(&bmop, "flag", 0);
BMO_slot_int_set(&bmop, "quadcornertype", SUBD_STRAIGHT_CUT);
BMO_slot_bool_set(&bmop, "singleedge", FALSE);
BMO_slot_bool_set(&bmop, "gridfill", FALSE);
@@ -3280,7 +3279,6 @@ void MESH_OT_split(wmOperatorType *ot)
static int edbm_spin_exec(bContext *C, wmOperator *op)
{
Object *obedit = CTX_data_edit_object(C);
- ToolSettings *ts = CTX_data_tool_settings(C);
BMEditMesh *em = BMEdit_FromObject(obedit);
BMesh *bm = em->bm;
BMOperator spinop;
@@ -3288,14 +3286,15 @@ static int edbm_spin_exec(bContext *C, wmOperator *op)
float d[3] = {0.0f, 0.0f, 0.0f};
int steps, dupli;
float degr;
-
+
RNA_float_get_array(op->ptr, "center", cent);
RNA_float_get_array(op->ptr, "axis", axis);
steps = RNA_int_get(op->ptr, "steps");
degr = RNA_float_get(op->ptr, "degrees");
- if (ts->editbutflag & B_CLOCKWISE) degr = -degr;
+ //if (ts->editbutflag & B_CLOCKWISE)
+ degr = -degr;
dupli = RNA_boolean_get(op->ptr, "dupli");
-
+
/* undo object transformation */
copy_m3_m4(imat, obedit->imat);
sub_v3_v3(cent, obedit->obmat[3]);