From 4c3bb77012024a3f14181eafe850b4d68bca1191 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 22 Mar 2012 07:26:09 +0000 Subject: style cleanup: spaces aroudn operators for operator definitions. --- source/blender/editors/space_view3d/view3d_snap.c | 72 +++++++++++------------ 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'source/blender/editors/space_view3d/view3d_snap.c') diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c index ef02e96b47e..55cc5af493e 100644 --- a/source/blender/editors/space_view3d/view3d_snap.c +++ b/source/blender/editors/space_view3d/view3d_snap.c @@ -635,16 +635,16 @@ static int snap_sel_to_grid(bContext *C, wmOperator *UNUSED(op)) void VIEW3D_OT_snap_selected_to_grid(wmOperatorType *ot) { /* identifiers */ - ot->name= "Snap Selection to Grid"; - ot->description= "Snap selected item(s) to nearest grid node"; - ot->idname= "VIEW3D_OT_snap_selected_to_grid"; + ot->name = "Snap Selection to Grid"; + ot->description = "Snap selected item(s) to nearest grid node"; + ot->idname = "VIEW3D_OT_snap_selected_to_grid"; /* api callbacks */ - ot->exec= snap_sel_to_grid; - ot->poll= ED_operator_region_view3d_active; + ot->exec = snap_sel_to_grid; + ot->poll = ED_operator_region_view3d_active; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* *************************************************** */ @@ -759,16 +759,16 @@ static int snap_sel_to_curs(bContext *C, wmOperator *UNUSED(op)) void VIEW3D_OT_snap_selected_to_cursor(wmOperatorType *ot) { /* identifiers */ - ot->name= "Snap Selection to Cursor"; - ot->description= "Snap selected item(s) to cursor"; - ot->idname= "VIEW3D_OT_snap_selected_to_cursor"; + ot->name = "Snap Selection to Cursor"; + ot->description = "Snap selected item(s) to cursor"; + ot->idname = "VIEW3D_OT_snap_selected_to_cursor"; /* api callbacks */ - ot->exec= snap_sel_to_curs; - ot->poll= ED_operator_view3d_active; + ot->exec = snap_sel_to_curs; + ot->poll = ED_operator_view3d_active; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* *************************************************** */ @@ -795,16 +795,16 @@ static int snap_curs_to_grid(bContext *C, wmOperator *UNUSED(op)) void VIEW3D_OT_snap_cursor_to_grid(wmOperatorType *ot) { /* identifiers */ - ot->name= "Snap Cursor to Grid"; - ot->description= "Snap cursor to nearest grid node"; - ot->idname= "VIEW3D_OT_snap_cursor_to_grid"; + ot->name = "Snap Cursor to Grid"; + ot->description = "Snap cursor to nearest grid node"; + ot->idname = "VIEW3D_OT_snap_cursor_to_grid"; /* api callbacks */ - ot->exec= snap_curs_to_grid; - ot->poll= ED_operator_region_view3d_active; + ot->exec = snap_curs_to_grid; + ot->poll = ED_operator_region_view3d_active; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* **************************************************** */ @@ -958,16 +958,16 @@ static int snap_curs_to_sel(bContext *C, wmOperator *UNUSED(op)) void VIEW3D_OT_snap_cursor_to_selected(wmOperatorType *ot) { /* identifiers */ - ot->name= "Snap Cursor to Selected"; - ot->description= "Snap cursor to center of selected item(s)"; - ot->idname= "VIEW3D_OT_snap_cursor_to_selected"; + ot->name = "Snap Cursor to Selected"; + ot->description = "Snap cursor to center of selected item(s)"; + ot->idname = "VIEW3D_OT_snap_cursor_to_selected"; /* api callbacks */ - ot->exec= snap_curs_to_sel; - ot->poll= ED_operator_view3d_active; + ot->exec = snap_curs_to_sel; + ot->poll = ED_operator_view3d_active; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* ********************************************** */ @@ -1008,16 +1008,16 @@ static int snap_curs_to_active(bContext *C, wmOperator *UNUSED(op)) void VIEW3D_OT_snap_cursor_to_active(wmOperatorType *ot) { /* identifiers */ - ot->name= "Snap Cursor to Active"; - ot->description= "Snap cursor to active item"; - ot->idname= "VIEW3D_OT_snap_cursor_to_active"; + ot->name = "Snap Cursor to Active"; + ot->description = "Snap cursor to active item"; + ot->idname = "VIEW3D_OT_snap_cursor_to_active"; /* api callbacks */ - ot->exec= snap_curs_to_active; - ot->poll= ED_operator_view3d_active; + ot->exec = snap_curs_to_active; + ot->poll = ED_operator_view3d_active; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* **************************************************** */ @@ -1041,16 +1041,16 @@ static int snap_curs_to_center(bContext *C, wmOperator *UNUSED(op)) void VIEW3D_OT_snap_cursor_to_center(wmOperatorType *ot) { /* identifiers */ - ot->name= "Snap Cursor to Center"; - ot->description= "Snap cursor to the Center"; - ot->idname= "VIEW3D_OT_snap_cursor_to_center"; + ot->name = "Snap Cursor to Center"; + ot->description = "Snap cursor to the Center"; + ot->idname = "VIEW3D_OT_snap_cursor_to_center"; /* api callbacks */ - ot->exec= snap_curs_to_center; - ot->poll= ED_operator_view3d_active; + ot->exec = snap_curs_to_center; + ot->poll = ED_operator_view3d_active; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; } /* **************************************************** */ -- cgit v1.2.3