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-03-22 11:26:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-22 11:26:09 +0400
commit4c3bb77012024a3f14181eafe850b4d68bca1191 (patch)
tree0b90fefff48b03ad117c5e16d65f6e653ff5f57b /source/blender/editors/space_view3d/view3d_snap.c
parent675628d24deba0afdc3da5b7a5bc802b13506251 (diff)
style cleanup: spaces aroudn operators for operator definitions.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_snap.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_snap.c72
1 files changed, 36 insertions, 36 deletions
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;
}
/* **************************************************** */