diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-22 11:26:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-22 11:26:09 +0400 |
commit | 4c3bb77012024a3f14181eafe850b4d68bca1191 (patch) | |
tree | 0b90fefff48b03ad117c5e16d65f6e653ff5f57b /source/blender/editors/gpencil | |
parent | 675628d24deba0afdc3da5b7a5bc802b13506251 (diff) |
style cleanup: spaces aroudn operators for operator definitions.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 66 | ||||
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 18 |
2 files changed, 42 insertions, 42 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 9a492153b7f..34eaaf2a31b 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -213,14 +213,14 @@ static int gp_data_add_exec (bContext *C, wmOperator *op) void GPENCIL_OT_data_add (wmOperatorType *ot) { /* identifiers */ - ot->name= "Grease Pencil Add New"; - ot->idname= "GPENCIL_OT_data_add"; - ot->description= "Add new Grease Pencil datablock"; - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->name = "Grease Pencil Add New"; + ot->idname = "GPENCIL_OT_data_add"; + ot->description = "Add new Grease Pencil datablock"; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* callbacks */ - ot->exec= gp_data_add_exec; - ot->poll= gp_add_poll; + ot->exec = gp_data_add_exec; + ot->poll = gp_add_poll; } /* ******************* Unlink Data ************************ */ @@ -261,14 +261,14 @@ static int gp_data_unlink_exec (bContext *C, wmOperator *op) void GPENCIL_OT_data_unlink (wmOperatorType *ot) { /* identifiers */ - ot->name= "Grease Pencil Unlink"; - ot->idname= "GPENCIL_OT_data_unlink"; - ot->description= "Unlink active Grease Pencil datablock"; - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->name = "Grease Pencil Unlink"; + ot->idname = "GPENCIL_OT_data_unlink"; + ot->description = "Unlink active Grease Pencil datablock"; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* callbacks */ - ot->exec= gp_data_unlink_exec; - ot->poll= gp_data_unlink_poll; + ot->exec = gp_data_unlink_exec; + ot->poll = gp_data_unlink_poll; } /* ******************* Add New Layer ************************ */ @@ -298,14 +298,14 @@ static int gp_layer_add_exec (bContext *C, wmOperator *op) void GPENCIL_OT_layer_add (wmOperatorType *ot) { /* identifiers */ - ot->name= "Add New Layer"; - ot->idname= "GPENCIL_OT_layer_add"; - ot->description= "Add new Grease Pencil layer for the active Grease Pencil datablock"; - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->name = "Add New Layer"; + ot->idname = "GPENCIL_OT_layer_add"; + ot->description = "Add new Grease Pencil layer for the active Grease Pencil datablock"; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* callbacks */ - ot->exec= gp_layer_add_exec; - ot->poll= gp_add_poll; + ot->exec = gp_layer_add_exec; + ot->poll = gp_add_poll; } /* ******************* Delete Active Frame ************************ */ @@ -349,14 +349,14 @@ static int gp_actframe_delete_exec (bContext *C, wmOperator *op) void GPENCIL_OT_active_frame_delete (wmOperatorType *ot) { /* identifiers */ - ot->name= "Delete Active Frame"; - ot->idname= "GPENCIL_OT_active_frame_delete"; - ot->description= "Delete the active frame for the active Grease Pencil datablock"; - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->name = "Delete Active Frame"; + ot->idname = "GPENCIL_OT_active_frame_delete"; + ot->description = "Delete the active frame for the active Grease Pencil datablock"; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* callbacks */ - ot->exec= gp_actframe_delete_exec; - ot->poll= gp_actframe_delete_poll; + ot->exec = gp_actframe_delete_exec; + ot->poll = gp_actframe_delete_poll; } /* ************************************************ */ @@ -632,21 +632,21 @@ static int gp_convert_layer_exec (bContext *C, wmOperator *op) void GPENCIL_OT_convert (wmOperatorType *ot) { /* identifiers */ - ot->name= "Convert Grease Pencil"; - ot->idname= "GPENCIL_OT_convert"; - ot->description= "Convert the active Grease Pencil layer to a new Object"; - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->name = "Convert Grease Pencil"; + ot->idname = "GPENCIL_OT_convert"; + ot->description = "Convert the active Grease Pencil layer to a new Object"; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* callbacks */ - ot->invoke= WM_menu_invoke; - ot->exec= gp_convert_layer_exec; - ot->poll= gp_convert_poll; + ot->invoke = WM_menu_invoke; + ot->exec = gp_convert_layer_exec; + ot->poll = gp_convert_poll; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; /* properties */ - ot->prop= RNA_def_enum(ot->srna, "type", prop_gpencil_convertmodes, 0, "Type", ""); + ot->prop = RNA_def_enum(ot->srna, "type", prop_gpencil_convertmodes, 0, "Type", ""); } /* ************************************************ */ diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 535a0f947f1..b7ebc6d0a35 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -1919,19 +1919,19 @@ static EnumPropertyItem prop_gpencil_drawmodes[] = { void GPENCIL_OT_draw (wmOperatorType *ot) { /* identifiers */ - ot->name= "Grease Pencil Draw"; - ot->idname= "GPENCIL_OT_draw"; - ot->description= "Make annotations on the active data"; + ot->name = "Grease Pencil Draw"; + ot->idname = "GPENCIL_OT_draw"; + ot->description = "Make annotations on the active data"; /* api callbacks */ - ot->exec= gpencil_draw_exec; - ot->invoke= gpencil_draw_invoke; - ot->modal= gpencil_draw_modal; - ot->cancel= gpencil_draw_cancel; - ot->poll= gpencil_draw_poll; + ot->exec = gpencil_draw_exec; + ot->invoke = gpencil_draw_invoke; + ot->modal = gpencil_draw_modal; + ot->cancel = gpencil_draw_cancel; + ot->poll = gpencil_draw_poll; /* flags */ - ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING; + ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING; /* settings for drawing */ RNA_def_enum(ot->srna, "mode", prop_gpencil_drawmodes, 0, "Mode", "Way to interpret mouse movements"); |