missed renaming the operator keymap strip and exec function, also made some functions static

This commit is contained in:
Campbell Barton
2009-02-01 03:12:31 +00:00
parent 2755d48d4e
commit beb22eccfb
2 changed files with 7 additions and 7 deletions

View File

@@ -3305,7 +3305,7 @@ void MESH_OT_select_non_manifold(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
}
void selectswap_mesh(EditMesh *em) /* UI level */
static void selectswap_mesh(EditMesh *em) /* UI level */
{
EditVert *eve;
EditEdge *eed;
@@ -3555,7 +3555,7 @@ void MESH_OT_select_less(wmOperatorType *ot)
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
}
void selectrandom_mesh(EditMesh *em, int randfac) /* randomly selects a user-set % of vertices/edges/faces */
static void selectrandom_mesh(EditMesh *em, int randfac) /* randomly selects a user-set % of vertices/edges/faces */
{
EditVert *eve;
EditEdge *eed;
@@ -3654,7 +3654,7 @@ void editmesh_deselect_by_material(EditMesh *em, int index)
EM_selectmode_flush(em);
}
void mesh_selection_mode_menu(EditMesh *em, int val)
static void mesh_selection_type(EditMesh *em, int val)
{
int ctrl= 0; // XXX
@@ -3693,13 +3693,13 @@ static EnumPropertyItem prop_mesh_edit_types[] = {
{0, NULL, NULL, NULL}
};
static int mesh_selection_mode_menu_exec(bContext *C, wmOperator *op)
static int mesh_selection_type_exec(bContext *C, wmOperator *op)
{
Object *obedit= CTX_data_edit_object(C);
EditMesh *em= ((Mesh *)obedit->data)->edit_mesh;
mesh_selection_mode_menu(em, RNA_enum_get(op->ptr,"type"));
mesh_selection_type(em, RNA_enum_get(op->ptr,"type"));
WM_event_add_notifier(C, NC_WINDOW, obedit);
@@ -3714,7 +3714,7 @@ void MESH_OT_mesh_selection_type(wmOperatorType *ot)
/* api callbacks */
ot->invoke= WM_menu_invoke;
ot->exec= mesh_selection_mode_menu_exec;
ot->exec= mesh_selection_type_exec;
ot->poll= ED_operator_editmesh;

View File

@@ -197,7 +197,7 @@ void ED_keymap_mesh(wmWindowManager *wm)
/* selection mode */
WM_keymap_add_item(keymap, "MESH_OT_mesh_selection_mode_menu", TABKEY, KM_PRESS, KM_CTRL|KM_SHIFT, 0);
WM_keymap_add_item(keymap, "MESH_OT_mesh_selection_type", TABKEY, KM_PRESS, KM_CTRL|KM_SHIFT, 0);
/* transform keymap already defined, so no tweaks for select */