style cleanup: spaces aroudn operators for operator definitions.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 22 Mar 2012 07:26:09 +0000 (07:26 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 22 Mar 2012 07:26:09 +0000 (07:26 +0000)
107 files changed:
source/blender/editors/animation/anim_channels_edit.c
source/blender/editors/animation/anim_markers.c
source/blender/editors/animation/anim_ops.c
source/blender/editors/animation/drivers.c
source/blender/editors/animation/keyframing.c
source/blender/editors/animation/keyingsets.c
source/blender/editors/armature/armature_ops.c
source/blender/editors/armature/editarmature.c
source/blender/editors/armature/editarmature_sketch.c
source/blender/editors/armature/poseSlide.c
source/blender/editors/armature/poselib.c
source/blender/editors/armature/poseobject.c
source/blender/editors/curve/editcurve.c
source/blender/editors/curve/editfont.c
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/interface/interface_ops.c
source/blender/editors/interface/view2d_ops.c
source/blender/editors/mesh/editmesh_add.c
source/blender/editors/mesh/loopcut.c
source/blender/editors/mesh/mesh_data.c
source/blender/editors/mesh/mesh_navmesh.c
source/blender/editors/metaball/mball_edit.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_bake.c
source/blender/editors/object/object_constraint.c
source/blender/editors/object/object_edit.c
source/blender/editors/object/object_group.c
source/blender/editors/object/object_hook.c
source/blender/editors/object/object_lattice.c
source/blender/editors/object/object_modifier.c
source/blender/editors/object/object_relations.c
source/blender/editors/object/object_select.c
source/blender/editors/object/object_shapekey.c
source/blender/editors/object/object_transform.c
source/blender/editors/object/object_vgroup.c
source/blender/editors/physics/dynamicpaint_ops.c
source/blender/editors/physics/particle_boids.c
source/blender/editors/physics/particle_edit.c
source/blender/editors/physics/particle_object.c
source/blender/editors/physics/physics_fluid.c
source/blender/editors/physics/physics_pointcache.c
source/blender/editors/render/render_internal.c
source/blender/editors/render/render_opengl.c
source/blender/editors/render/render_shading.c
source/blender/editors/render/render_view.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/screen/screendump.c
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/sculpt_paint/paint_ops.c
source/blender/editors/sculpt_paint/paint_utils.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sound/sound_ops.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_action/action_ops.c
source/blender/editors/space_action/action_select.c
source/blender/editors/space_buttons/buttons_ops.c
source/blender/editors/space_clip/clip_graph_ops.c
source/blender/editors/space_clip/clip_ops.c
source/blender/editors/space_clip/clip_toolbar.c
source/blender/editors/space_clip/tracking_ops.c
source/blender/editors/space_console/console_ops.c
source/blender/editors/space_file/file_ops.c
source/blender/editors/space_graph/graph_buttons.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_ops.c
source/blender/editors/space_graph/graph_select.c
source/blender/editors/space_image/image_buttons.c
source/blender/editors/space_image/image_ops.c
source/blender/editors/space_info/info_ops.c
source/blender/editors/space_info/info_report.c
source/blender/editors/space_logic/logic_buttons.c
source/blender/editors/space_logic/logic_ops.c
source/blender/editors/space_nla/nla_buttons.c
source/blender/editors/space_nla/nla_channels.c
source/blender/editors/space_nla/nla_edit.c
source/blender/editors/space_nla/nla_select.c
source/blender/editors/space_node/node_buttons.c
source/blender/editors/space_node/node_edit.c
source/blender/editors/space_node/node_select.c
source/blender/editors/space_node/node_state.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_outliner/outliner_select.c
source/blender/editors/space_outliner/outliner_tools.c
source/blender/editors/space_script/script_edit.c
source/blender/editors/space_sequencer/sequencer_add.c
source/blender/editors/space_sequencer/sequencer_buttons.c
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/editors/space_sequencer/sequencer_select.c
source/blender/editors/space_text/text_header.c
source/blender/editors/space_text/text_ops.c
source/blender/editors/space_time/time_ops.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_header.c
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_snap.c
source/blender/editors/space_view3d/view3d_toolbar.c
source/blender/editors/space_view3d/view3d_view.c
source/blender/editors/transform/transform_ops.c
source/blender/editors/util/undo.c
source/blender/editors/uvedit/uvedit_ops.c
source/blender/editors/uvedit/uvedit_smart_stitch.c
source/blender/editors/uvedit/uvedit_unwrap_ops.c
source/blender/quicktime/apple/quicktime_export.c
source/blender/windowmanager/intern/wm_keymap.c
source/blender/windowmanager/intern/wm_operators.c

index ec1583f2aa3cbb099ff8cf032fc90b466c25c09c..bfe17b80fda4de7cd5eb7ccc47a100ea99c22577 100644 (file)
@@ -1104,19 +1104,19 @@ static int animchannels_rearrange_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_channels_move (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Channels";
-       ot->idname= "ANIM_OT_channels_move";
+       ot->name = "Move Channels";
+       ot->idname = "ANIM_OT_channels_move";
        ot->description = "Rearrange selected animation channels";
        
        /* api callbacks */
-       ot->exec= animchannels_rearrange_exec;
-       ot->poll= animedit_poll_channels_nla_tweakmode_off;
+       ot->exec = animchannels_rearrange_exec;
+       ot->poll = animedit_poll_channels_nla_tweakmode_off;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_enum(ot->srna, "direction", prop_animchannel_rearrange_types, REARRANGE_ANIMCHAN_DOWN, "Direction", "");
+       ot->prop = RNA_def_enum(ot->srna, "direction", prop_animchannel_rearrange_types, REARRANGE_ANIMCHAN_DOWN, "Direction", "");
 }
 
 /* ******************** Delete Channel Operator *********************** */
@@ -1220,16 +1220,16 @@ static int animchannels_delete_exec(bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_channels_delete (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Channels";
-       ot->idname= "ANIM_OT_channels_delete";
-       ot->description= "Delete all selected animation channels";
+       ot->name = "Delete Channels";
+       ot->idname = "ANIM_OT_channels_delete";
+       ot->description = "Delete all selected animation channels";
        
        /* api callbacks */
-       ot->exec= animchannels_delete_exec;
-       ot->poll= animedit_poll_channels_active;
+       ot->exec = animchannels_delete_exec;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ******************** Set Channel Visibility Operator *********************** */
@@ -1312,16 +1312,16 @@ static int animchannels_visibility_set_exec(bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_channels_visibility_set (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Visibility";
-       ot->idname= "ANIM_OT_channels_visibility_set";
-       ot->description= "Make only the selected animation channels visible in the Graph Editor";
+       ot->name = "Set Visibility";
+       ot->idname = "ANIM_OT_channels_visibility_set";
+       ot->description = "Make only the selected animation channels visible in the Graph Editor";
        
        /* api callbacks */
-       ot->exec= animchannels_visibility_set_exec;
-       ot->poll= ED_operator_graphedit_active;
+       ot->exec = animchannels_visibility_set_exec;
+       ot->poll = ED_operator_graphedit_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -1389,16 +1389,16 @@ static int animchannels_visibility_toggle_exec(bContext *C, wmOperator *UNUSED(o
 static void ANIM_OT_channels_visibility_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Visibility";
-       ot->idname= "ANIM_OT_channels_visibility_toggle";
-       ot->description= "Toggle visibility in Graph Editor of all selected animation channels";
+       ot->name = "Toggle Visibility";
+       ot->idname = "ANIM_OT_channels_visibility_toggle";
+       ot->description = "Toggle visibility in Graph Editor of all selected animation channels";
        
        /* api callbacks */
-       ot->exec= animchannels_visibility_toggle_exec;
-       ot->poll= ED_operator_graphedit_active;
+       ot->exec = animchannels_visibility_toggle_exec;
+       ot->poll = ED_operator_graphedit_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ********************** Set Flags Operator *********************** */
@@ -1532,82 +1532,82 @@ static int animchannels_setflag_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_channels_setting_enable (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Enable Channel Setting";
-       ot->idname= "ANIM_OT_channels_setting_enable";
-       ot->description= "Enable specified setting on all selected animation channels";
+       ot->name = "Enable Channel Setting";
+       ot->idname = "ANIM_OT_channels_setting_enable";
+       ot->description = "Enable specified setting on all selected animation channels";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= animchannels_setflag_exec;
-       ot->poll= animedit_poll_channels_active;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = animchannels_setflag_exec;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
                /* flag-setting mode */
        RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_ADD, "Mode", "");
                /* setting to set */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
 }
 /* duplicate of 'ANIM_OT_channels_setting_toggle' for menu title only, weak! */
 static void ANIM_OT_channels_setting_disable (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Disable Channel Setting";
-       ot->idname= "ANIM_OT_channels_setting_disable";
-       ot->description= "Disable specified setting on all selected animation channels";
+       ot->name = "Disable Channel Setting";
+       ot->idname = "ANIM_OT_channels_setting_disable";
+       ot->description = "Disable specified setting on all selected animation channels";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= animchannels_setflag_exec;
-       ot->poll= animedit_poll_channels_active;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = animchannels_setflag_exec;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
                /* flag-setting mode */
        RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_CLEAR, "Mode", "");
                /* setting to set */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
 }
 
 static void ANIM_OT_channels_setting_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Channel Setting";
-       ot->idname= "ANIM_OT_channels_setting_toggle";
-       ot->description= "Toggle specified setting on all selected animation channels";
+       ot->name = "Toggle Channel Setting";
+       ot->idname = "ANIM_OT_channels_setting_toggle";
+       ot->description = "Toggle specified setting on all selected animation channels";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= animchannels_setflag_exec;
-       ot->poll= animedit_poll_channels_active;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = animchannels_setflag_exec;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
                /* flag-setting mode */
        RNA_def_enum(ot->srna, "mode", prop_animchannel_setflag_types, ACHANNEL_SETFLAG_TOGGLE, "Mode", "");
                /* setting to set */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", prop_animchannel_settings_types, 0, "Type", "");
 }
 
 static void ANIM_OT_channels_editable_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Channel Editability";
-       ot->idname= "ANIM_OT_channels_editable_toggle";
-       ot->description= "Toggle editability of selected channels";
+       ot->name = "Toggle Channel Editability";
+       ot->idname = "ANIM_OT_channels_editable_toggle";
+       ot->description = "Toggle editability of selected channels";
        
        /* api callbacks */
-       ot->exec= animchannels_setflag_exec;
-       ot->poll= animedit_poll_channels_active;
+       ot->exec = animchannels_setflag_exec;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
                /* flag-setting mode */
@@ -1643,19 +1643,19 @@ static int animchannels_expand_exec (bContext *C, wmOperator *op)
 static void ANIM_OT_channels_expand (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Expand Channels";
-       ot->idname= "ANIM_OT_channels_expand";
-       ot->description= "Expand (i.e. open) all selected expandable animation channels";
+       ot->name = "Expand Channels";
+       ot->idname = "ANIM_OT_channels_expand";
+       ot->description = "Expand (i.e. open) all selected expandable animation channels";
        
        /* api callbacks */
-       ot->exec= animchannels_expand_exec;
-       ot->poll= animedit_poll_channels_active;
+       ot->exec = animchannels_expand_exec;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_boolean(ot->srna, "all", 1, "All", "Expand all channels (not just selected ones)");
+       ot->prop = RNA_def_boolean(ot->srna, "all", 1, "All", "Expand all channels (not just selected ones)");
 }
 
 /* ********************** Collapse Channels Operator *********************** */
@@ -1685,19 +1685,19 @@ static int animchannels_collapse_exec (bContext *C, wmOperator *op)
 static void ANIM_OT_channels_collapse (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Collapse Channels";
-       ot->idname= "ANIM_OT_channels_collapse";
-       ot->description= "Collapse (i.e. close) all selected expandable animation channels";
+       ot->name = "Collapse Channels";
+       ot->idname = "ANIM_OT_channels_collapse";
+       ot->description = "Collapse (i.e. close) all selected expandable animation channels";
        
        /* api callbacks */
-       ot->exec= animchannels_collapse_exec;
-       ot->poll= animedit_poll_channels_active;
+       ot->exec = animchannels_collapse_exec;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_boolean(ot->srna, "all", 1, "All", "Collapse all channels (not just selected ones)");
+       ot->prop = RNA_def_boolean(ot->srna, "all", 1, "All", "Collapse all channels (not just selected ones)");
 }
 
 /* ******************* Reenable Disabled Operator ******************* */
@@ -1761,16 +1761,16 @@ static int animchannels_enable_exec (bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_channels_fcurves_enable (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Revive Disabled F-Curves";
-       ot->idname= "ANIM_OT_channels_fcurves_enable";
-       ot->description= "Clears 'disabled' tag from all F-Curves to get broken F-Curves working again";
+       ot->name = "Revive Disabled F-Curves";
+       ot->idname = "ANIM_OT_channels_fcurves_enable";
+       ot->description = "Clears 'disabled' tag from all F-Curves to get broken F-Curves working again";
        
        /* api callbacks */
-       ot->exec= animchannels_enable_exec;
-       ot->poll= animchannels_enable_poll;
+       ot->exec = animchannels_enable_exec;
+       ot->poll = animchannels_enable_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ********************** Select All Operator *********************** */
@@ -1798,19 +1798,19 @@ static int animchannels_deselectall_exec (bContext *C, wmOperator *op)
 static void ANIM_OT_channels_select_all_toggle (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select All";
-       ot->idname= "ANIM_OT_channels_select_all_toggle";
-       ot->description= "Toggle selection of all animation channels";
+       ot->name = "Select All";
+       ot->idname = "ANIM_OT_channels_select_all_toggle";
+       ot->description = "Toggle selection of all animation channels";
        
        /* api callbacks */
-       ot->exec= animchannels_deselectall_exec;
-       ot->poll= animedit_poll_channels_nla_tweakmode_off;
+       ot->exec = animchannels_deselectall_exec;
+       ot->poll = animedit_poll_channels_nla_tweakmode_off;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_boolean(ot->srna, "invert", 0, "Invert", "");
+       ot->prop = RNA_def_boolean(ot->srna, "invert", 0, "Invert", "");
 }
 
 /* ******************** Borderselect Operator *********************** */
@@ -1929,20 +1929,20 @@ static int animchannels_borderselect_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_channels_select_border(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Border Select";
-       ot->idname= "ANIM_OT_channels_select_border";
-       ot->description= "Select all animation channels within the specified region";
+       ot->name = "Border Select";
+       ot->idname = "ANIM_OT_channels_select_border";
+       ot->description = "Select all animation channels within the specified region";
        
        /* api callbacks */
-       ot->invoke= WM_border_select_invoke;
-       ot->exec= animchannels_borderselect_exec;
-       ot->modal= WM_border_select_modal;
-       ot->cancel= WM_border_select_cancel;
+       ot->invoke = WM_border_select_invoke;
+       ot->exec = animchannels_borderselect_exec;
+       ot->modal = WM_border_select_modal;
+       ot->cancel = WM_border_select_cancel;
        
-       ot->poll= animedit_poll_channels_nla_tweakmode_off;
+       ot->poll = animedit_poll_channels_nla_tweakmode_off;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* rna */
        WM_operator_properties_gesture_border(ot, TRUE);
@@ -2040,13 +2040,13 @@ static int animchannels_rename_invoke (bContext *C, wmOperator *UNUSED(op), wmEv
 static void ANIM_OT_channels_rename (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Rename Channels";
-       ot->idname= "ANIM_OT_channels_rename";
-       ot->description= "Rename animation channel under mouse";
+       ot->name = "Rename Channels";
+       ot->idname = "ANIM_OT_channels_rename";
+       ot->description = "Rename animation channel under mouse";
        
        /* api callbacks */
-       ot->invoke= animchannels_rename_invoke;
-       ot->poll= animedit_poll_channels_active;
+       ot->invoke = animchannels_rename_invoke;
+       ot->poll = animedit_poll_channels_active;
 }
 
 /* ******************** Mouse-Click Operator *********************** */
@@ -2349,16 +2349,16 @@ static int animchannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent *
 static void ANIM_OT_channels_click (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Mouse Click on Channels";
-       ot->idname= "ANIM_OT_channels_click";
-       ot->description= "Handle mouse-clicks over animation channels";
+       ot->name = "Mouse Click on Channels";
+       ot->idname = "ANIM_OT_channels_click";
+       ot->description = "Handle mouse-clicks over animation channels";
        
        /* api callbacks */
-       ot->invoke= animchannels_mouseclick_invoke;
-       ot->poll= animedit_poll_channels_active;
+       ot->invoke = animchannels_mouseclick_invoke;
+       ot->poll = animedit_poll_channels_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* id-props */
        RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY
index 803516e211b1864ac0fdd16e55cff9014a1cd072..f5c70796b58fe4f957841aac786165d4a36fbd21 100644 (file)
@@ -582,17 +582,17 @@ static int ed_marker_add(bContext *C, wmOperator *UNUSED(op))
 static void MARKER_OT_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Time Marker";
-       ot->description= "Add a new time marker";
-       ot->idname= "MARKER_OT_add";
+       ot->name = "Add Time Marker";
+       ot->description = "Add a new time marker";
+       ot->idname = "MARKER_OT_add";
        
        /* api callbacks */
-       ot->exec= ed_marker_add;
+       ot->exec = ed_marker_add;
        ot->invoke = ed_markers_opwrap_invoke;
-       ot->poll= ED_operator_animview_active;
+       ot->poll = ED_operator_animview_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ************************** transform markers *************************** */
@@ -883,19 +883,19 @@ static int ed_marker_move_exec(bContext *C, wmOperator *op)
 static void MARKER_OT_move(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Time Marker";
-       ot->description= "Move selected time marker(s)";
-       ot->idname= "MARKER_OT_move";
+       ot->name = "Move Time Marker";
+       ot->description = "Move selected time marker(s)";
+       ot->idname = "MARKER_OT_move";
        
        /* api callbacks */
-       ot->exec= ed_marker_move_exec;
-       ot->invoke= ed_marker_move_invoke_wrapper;
-       ot->modal= ed_marker_move_modal;
-       ot->poll= ed_markers_poll_selected_markers;
-       ot->cancel= ed_marker_move_cancel;
+       ot->exec = ed_marker_move_exec;
+       ot->invoke = ed_marker_move_invoke_wrapper;
+       ot->modal = ed_marker_move_modal;
+       ot->poll = ed_markers_poll_selected_markers;
+       ot->cancel = ed_marker_move_cancel;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER;
        
        /* rna storage */
        RNA_def_int(ot->srna, "frames", 0, INT_MIN, INT_MAX, "Frames", "", INT_MIN, INT_MAX);
@@ -976,19 +976,19 @@ static int ed_marker_duplicate_invoke_wrapper(bContext *C, wmOperator *op, wmEve
 static void MARKER_OT_duplicate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Time Marker";
-       ot->description= "Duplicate selected time marker(s)";
-       ot->idname= "MARKER_OT_duplicate";
+       ot->name = "Duplicate Time Marker";
+       ot->description = "Duplicate selected time marker(s)";
+       ot->idname = "MARKER_OT_duplicate";
        
        /* api callbacks */
-       ot->exec= ed_marker_duplicate_exec;
-       ot->invoke= ed_marker_duplicate_invoke_wrapper;
-       ot->modal= ed_marker_move_modal;
-       ot->poll= ed_markers_poll_selected_markers;
-       ot->cancel= ed_marker_move_cancel;
+       ot->exec = ed_marker_duplicate_exec;
+       ot->invoke = ed_marker_duplicate_invoke_wrapper;
+       ot->modal = ed_marker_move_modal;
+       ot->poll = ed_markers_poll_selected_markers;
+       ot->cancel = ed_marker_move_cancel;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* rna storage */
        RNA_def_int(ot->srna, "frames", 0, INT_MIN, INT_MAX, "Frames", "", INT_MIN, INT_MAX);
@@ -1101,16 +1101,16 @@ static int ed_marker_select_invoke_wrapper(bContext *C, wmOperator *op, wmEvent
 static void MARKER_OT_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Time Marker";
-       ot->description= "Select time marker(s)";
-       ot->idname= "MARKER_OT_select";
+       ot->name = "Select Time Marker";
+       ot->description = "Select time marker(s)";
+       ot->idname = "MARKER_OT_select";
        
        /* api callbacks */
-       ot->invoke= ed_marker_select_invoke_wrapper;
-       ot->poll= ed_markers_poll_markers_exist;
+       ot->invoke = ed_marker_select_invoke_wrapper;
+       ot->poll = ed_markers_poll_markers_exist;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        RNA_def_boolean(ot->srna, "extend", 0, "Extend", "Extend the selection");
 #ifdef DURIAN_CAMERA_SWITCH
@@ -1189,20 +1189,20 @@ static int ed_marker_select_border_invoke_wrapper(bContext *C, wmOperator *op, w
 static void MARKER_OT_select_border(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Marker Border select";
-       ot->description= "Select all time markers using border selection";
-       ot->idname= "MARKER_OT_select_border";
+       ot->name = "Marker Border select";
+       ot->description = "Select all time markers using border selection";
+       ot->idname = "MARKER_OT_select_border";
        
        /* api callbacks */
-       ot->exec= ed_marker_border_select_exec;
-       ot->invoke= ed_marker_select_border_invoke_wrapper;
-       ot->modal= WM_border_select_modal;
-       ot->cancel= WM_border_select_cancel;
+       ot->exec = ed_marker_border_select_exec;
+       ot->invoke = ed_marker_select_border_invoke_wrapper;
+       ot->modal = WM_border_select_modal;
+       ot->cancel = WM_border_select_cancel;
        
-       ot->poll= ed_markers_poll_markers_exist;
+       ot->poll = ed_markers_poll_markers_exist;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* rna */
        WM_operator_properties_gesture_border(ot, TRUE);
@@ -1246,17 +1246,17 @@ static int ed_marker_select_all_exec(bContext *C, wmOperator *op)
 static void MARKER_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select all markers";
-       ot->description= "Change selection of all time markers";
-       ot->idname= "MARKER_OT_select_all";
+       ot->name = "(De)select all markers";
+       ot->description = "Change selection of all time markers";
+       ot->idname = "MARKER_OT_select_all";
        
        /* api callbacks */
-       ot->exec= ed_marker_select_all_exec;
+       ot->exec = ed_marker_select_all_exec;
        ot->invoke = ed_markers_opwrap_invoke;
-       ot->poll= ed_markers_poll_markers_exist;
+       ot->poll = ed_markers_poll_markers_exist;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* rna */
        WM_operator_properties_select_all(ot);
@@ -1299,17 +1299,17 @@ static int ed_marker_delete_invoke_wrapper(bContext *C, wmOperator *op, wmEvent
 static void MARKER_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Markers";
-       ot->description= "Delete selected time marker(s)";
-       ot->idname= "MARKER_OT_delete";
+       ot->name = "Delete Markers";
+       ot->description = "Delete selected time marker(s)";
+       ot->idname = "MARKER_OT_delete";
        
        /* api callbacks */
-       ot->invoke= ed_marker_delete_invoke_wrapper;
-       ot->exec= ed_marker_delete_exec;
-       ot->poll= ed_markers_poll_selected_markers;
+       ot->invoke = ed_marker_delete_invoke_wrapper;
+       ot->exec = ed_marker_delete_exec;
+       ot->poll = ed_markers_poll_selected_markers;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;  
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; 
 }
 
 
@@ -1347,17 +1347,17 @@ static int ed_marker_rename_invoke_wrapper(bContext *C, wmOperator *op, wmEvent
 static void MARKER_OT_rename(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Rename Marker";
-       ot->description= "Rename first selected time marker";
-       ot->idname= "MARKER_OT_rename";
+       ot->name = "Rename Marker";
+       ot->description = "Rename first selected time marker";
+       ot->idname = "MARKER_OT_rename";
        
        /* api callbacks */
-       ot->invoke= ed_marker_rename_invoke_wrapper;
-       ot->exec= ed_marker_rename_exec;
-       ot->poll= ed_markers_poll_selected_markers;
+       ot->invoke = ed_marker_rename_invoke_wrapper;
+       ot->exec = ed_marker_rename_exec;
+       ot->poll = ed_markers_poll_selected_markers;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;  
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; 
        
        /* properties */
        ot->prop = RNA_def_string(ot->srna, "name", "RenamedMarker", sizeof(((TimeMarker *)NULL)->name), "Name", "New name for marker");
@@ -1400,22 +1400,22 @@ static void MARKER_OT_make_links_scene(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Make Links to Scene";
-       ot->description= "Copy selected markers to another scene";
-       ot->idname= "MARKER_OT_make_links_scene";
+       ot->name = "Make Links to Scene";
+       ot->description = "Copy selected markers to another scene";
+       ot->idname = "MARKER_OT_make_links_scene";
 
        /* api callbacks */
-       ot->exec= ed_marker_make_links_scene_exec;
+       ot->exec = ed_marker_make_links_scene_exec;
        ot->invoke = ed_markers_opwrap_invoke;
-       ot->poll= ed_markers_poll_selected_markers;
+       ot->poll = ed_markers_poll_selected_markers;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        prop= RNA_def_enum(ot->srna, "scene", DummyRNA_NULL_items, 0, "Scene", "");
        RNA_def_enum_funcs(prop, RNA_scene_itemf);
-       ot->prop= prop;
+       ot->prop = prop;
 
 }
 
@@ -1450,17 +1450,17 @@ static int ed_marker_camera_bind_exec(bContext *C, wmOperator *UNUSED(op))
 static void MARKER_OT_camera_bind(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Bind Camera to Markers";
-       ot->description= "Bind the active camera to selected markers(s)";
-       ot->idname= "MARKER_OT_camera_bind";
+       ot->name = "Bind Camera to Markers";
+       ot->description = "Bind the active camera to selected markers(s)";
+       ot->idname = "MARKER_OT_camera_bind";
 
        /* api callbacks */
-       ot->exec= ed_marker_camera_bind_exec;
+       ot->exec = ed_marker_camera_bind_exec;
        ot->invoke = ed_markers_opwrap_invoke;
-       ot->poll= ed_markers_poll_selected_markers;
+       ot->poll = ed_markers_poll_selected_markers;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 #endif
 
index 5b246e63a20f57e135b746b9e79c8eea85e3e550..05a7a263e082973f35644ea79a050bdcf3620687 100644 (file)
@@ -161,18 +161,18 @@ static int change_frame_modal(bContext *C, wmOperator *op, wmEvent *event)
 static void ANIM_OT_change_frame(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change frame";
-       ot->idname= "ANIM_OT_change_frame";
-       ot->description= "Interactively change the current frame number";
+       ot->name = "Change frame";
+       ot->idname = "ANIM_OT_change_frame";
+       ot->description = "Interactively change the current frame number";
        
        /* api callbacks */
-       ot->exec= change_frame_exec;
-       ot->invoke= change_frame_invoke;
-       ot->modal= change_frame_modal;
-       ot->poll= change_frame_poll;
+       ot->exec = change_frame_exec;
+       ot->invoke = change_frame_invoke;
+       ot->modal = change_frame_modal;
+       ot->poll = change_frame_poll;
        
        /* flags */
-       ot->flag= OPTYPE_BLOCKING|OPTYPE_UNDO;
+       ot->flag = OPTYPE_BLOCKING|OPTYPE_UNDO;
 
        /* rna */
        RNA_def_int(ot->srna, "frame", 0, MINAFRAME, MAXFRAME, "Frame", "", MINAFRAME, MAXFRAME);
@@ -216,20 +216,20 @@ static int previewrange_define_exec(bContext *C, wmOperator *op)
 static void ANIM_OT_previewrange_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Preview Range";
-       ot->idname= "ANIM_OT_previewrange_set";
-       ot->description= "Interactively define frame range used for playback";
+       ot->name = "Set Preview Range";
+       ot->idname = "ANIM_OT_previewrange_set";
+       ot->description = "Interactively define frame range used for playback";
        
        /* api callbacks */
-       ot->invoke= WM_border_select_invoke;
-       ot->exec= previewrange_define_exec;
-       ot->modal= WM_border_select_modal;
-       ot->cancel= WM_border_select_cancel;
+       ot->invoke = WM_border_select_invoke;
+       ot->exec = previewrange_define_exec;
+       ot->modal = WM_border_select_modal;
+       ot->cancel = WM_border_select_cancel;
        
-       ot->poll= ED_operator_animview_active;
+       ot->poll = ED_operator_animview_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* rna */
                /* used to define frame range */
@@ -264,17 +264,17 @@ static int previewrange_clear_exec(bContext *C, wmOperator *UNUSED(op))
 static void ANIM_OT_previewrange_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Preview Range";
-       ot->idname= "ANIM_OT_previewrange_clear";
-       ot->description= "Clear Preview Range";
+       ot->name = "Clear Preview Range";
+       ot->idname = "ANIM_OT_previewrange_clear";
+       ot->description = "Clear Preview Range";
        
        /* api callbacks */
-       ot->exec= previewrange_clear_exec;
+       ot->exec = previewrange_clear_exec;
        
-       ot->poll= ED_operator_animview_active;
+       ot->poll = ED_operator_animview_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ************************** registration **********************************/
index 6af95b35ba83e6ea9facbf2e3cd31e56869b3806..881de2904f7e2ae10f73c017957868e4b2394d8d 100644 (file)
@@ -515,16 +515,16 @@ static int add_driver_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_driver_button_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Driver";
-       ot->idname= "ANIM_OT_driver_button_add";
-       ot->description= "Add driver(s) for the property(s) connected represented by the highlighted button";
+       ot->name = "Add Driver";
+       ot->idname = "ANIM_OT_driver_button_add";
+       ot->description = "Add driver(s) for the property(s) connected represented by the highlighted button";
        
        /* callbacks */
-       ot->exec= add_driver_button_exec; 
+       ot->exec = add_driver_button_exec; 
        //op->poll= ??? // TODO: need to have some animatable property to do this
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "all", 1, "All", "Create drivers for all elements of the array");
@@ -567,16 +567,16 @@ static int remove_driver_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_driver_button_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Driver";
-       ot->idname= "ANIM_OT_driver_button_remove";
-       ot->description= "Remove the driver(s) for the property(s) connected represented by the highlighted button";
+       ot->name = "Remove Driver";
+       ot->idname = "ANIM_OT_driver_button_remove";
+       ot->description = "Remove the driver(s) for the property(s) connected represented by the highlighted button";
        
        /* callbacks */
-       ot->exec= remove_driver_button_exec; 
+       ot->exec = remove_driver_button_exec; 
        //op->poll= ??? // TODO: need to have some driver to be able to do this...
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "all", 1, "All", "Delete drivers for all elements of the array");
@@ -614,16 +614,16 @@ static int copy_driver_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_copy_driver_button (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Copy Driver";
-       ot->idname= "ANIM_OT_copy_driver_button";
-       ot->description= "Copy the driver for the highlighted button";
+       ot->name = "Copy Driver";
+       ot->idname = "ANIM_OT_copy_driver_button";
+       ot->description = "Copy the driver for the highlighted button";
        
        /* callbacks */
-       ot->exec= copy_driver_button_exec; 
+       ot->exec = copy_driver_button_exec; 
        //op->poll= ??? // TODO: need to have some driver to be able to do this...
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* Paste Driver Button Operator ------------------------ */
@@ -658,16 +658,16 @@ static int paste_driver_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_paste_driver_button (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Paste Driver";
-       ot->idname= "ANIM_OT_paste_driver_button";
-       ot->description= "Paste the driver in the copy/paste buffer for the highlighted button";
+       ot->name = "Paste Driver";
+       ot->idname = "ANIM_OT_paste_driver_button";
+       ot->description = "Paste the driver in the copy/paste buffer for the highlighted button";
        
        /* callbacks */
-       ot->exec= paste_driver_button_exec; 
+       ot->exec = paste_driver_button_exec; 
        //op->poll= ??? // TODO: need to have some driver to be able to do this...
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ************************************************** */
index e82f234d2b6ac0d6e22c0a73eedb6231434e545d..fdd790f58fceccac996c395ddca8efca88b61efb 100644 (file)
@@ -1158,22 +1158,22 @@ void ANIM_OT_keyframe_insert (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Insert Keyframe";
-       ot->idname= "ANIM_OT_keyframe_insert";
-       ot->description= "Insert keyframes on the current frame for all properties in the specified Keying Set";
+       ot->name = "Insert Keyframe";
+       ot->idname = "ANIM_OT_keyframe_insert";
+       ot->description = "Insert keyframes on the current frame for all properties in the specified Keying Set";
        
        /* callbacks */
-       ot->exec= insert_key_exec; 
-       ot->poll= modify_key_op_poll;
+       ot->exec = insert_key_exec; 
+       ot->poll = modify_key_op_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* keyingset to use (dynamic enum) */
        prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use");
        RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf);
        RNA_def_property_flag(prop, PROP_HIDDEN);
-       ot->prop= prop;
+       ot->prop = prop;
        
        /* confirm whether a keyframe was added by showing a popup 
         *      - by default, this is enabled, since this operator is assumed to be called independently
@@ -1219,23 +1219,23 @@ void ANIM_OT_keyframe_insert_menu (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Insert Keyframe Menu";
-       ot->idname= "ANIM_OT_keyframe_insert_menu";
-       ot->description= "Insert Keyframes for specified Keying Set, with menu of available Keying Sets if undefined";
+       ot->name = "Insert Keyframe Menu";
+       ot->idname = "ANIM_OT_keyframe_insert_menu";
+       ot->description = "Insert Keyframes for specified Keying Set, with menu of available Keying Sets if undefined";
        
        /* callbacks */
-       ot->invoke= insert_key_menu_invoke;
-       ot->exec= insert_key_exec; 
-       ot->poll= ED_operator_areaactive;
+       ot->invoke = insert_key_menu_invoke;
+       ot->exec = insert_key_exec; 
+       ot->poll = ED_operator_areaactive;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* keyingset to use (dynamic enum) */
        prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use");
        RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf);
        RNA_def_property_flag(prop, PROP_HIDDEN);
-       ot->prop= prop;
+       ot->prop = prop;
        
        /* confirm whether a keyframe was added by showing a popup 
         *      - by default, this is disabled so that if a menu is shown, this doesn't come up too
@@ -1314,22 +1314,22 @@ void ANIM_OT_keyframe_delete (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Delete Keying-Set Keyframe";
-       ot->idname= "ANIM_OT_keyframe_delete";
-       ot->description= "Delete keyframes on the current frame for all properties in the specified Keying Set";
+       ot->name = "Delete Keying-Set Keyframe";
+       ot->idname = "ANIM_OT_keyframe_delete";
+       ot->description = "Delete keyframes on the current frame for all properties in the specified Keying Set";
        
        /* callbacks */
-       ot->exec= delete_key_exec; 
-       ot->poll= modify_key_op_poll;
+       ot->exec = delete_key_exec; 
+       ot->poll = modify_key_op_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* keyingset to use (dynamic enum) */
        prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use");
        RNA_def_enum_funcs(prop, ANIM_keying_sets_enum_itemf);
        RNA_def_property_flag(prop, PROP_HIDDEN);
-       ot->prop= prop;
+       ot->prop = prop;
        
        /* confirm whether a keyframe was added by showing a popup 
         *      - by default, this is enabled, since this operator is assumed to be called independently
@@ -1387,18 +1387,18 @@ static int delete_key_v3d_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyframe_delete_v3d (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Keyframe";
-       ot->description= "Remove keyframes on current frame for selected object";
-       ot->idname= "ANIM_OT_keyframe_delete_v3d";
+       ot->name = "Delete Keyframe";
+       ot->description = "Remove keyframes on current frame for selected object";
+       ot->idname = "ANIM_OT_keyframe_delete_v3d";
        
        /* callbacks */
-       ot->invoke= WM_operator_confirm;
-       ot->exec= delete_key_v3d_exec; 
+       ot->invoke = WM_operator_confirm;
+       ot->exec = delete_key_v3d_exec; 
        
-       ot->poll= ED_operator_areaactive;
+       ot->poll = ED_operator_areaactive;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -1477,15 +1477,15 @@ static int insert_key_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyframe_insert_button (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Insert Keyframe (Buttons)";
-       ot->idname= "ANIM_OT_keyframe_insert_button";
+       ot->name = "Insert Keyframe (Buttons)";
+       ot->idname = "ANIM_OT_keyframe_insert_button";
        
        /* callbacks */
-       ot->exec= insert_key_button_exec; 
-       ot->poll= modify_key_op_poll;
+       ot->exec = insert_key_button_exec; 
+       ot->poll = modify_key_op_poll;
        
        /* flags */
-       ot->flag= OPTYPE_UNDO;
+       ot->flag = OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "all", 1, "All", "Insert a keyframe for all element of the array");
@@ -1549,15 +1549,15 @@ static int delete_key_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyframe_delete_button (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Keyframe (Buttons)";
-       ot->idname= "ANIM_OT_keyframe_delete_button";
+       ot->name = "Delete Keyframe (Buttons)";
+       ot->idname = "ANIM_OT_keyframe_delete_button";
        
        /* callbacks */
-       ot->exec= delete_key_button_exec; 
-       ot->poll= modify_key_op_poll;
+       ot->exec = delete_key_button_exec; 
+       ot->poll = modify_key_op_poll;
        
        /* flags */
-       ot->flag= OPTYPE_UNDO;
+       ot->flag = OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "all", 1, "All", "Delete keyfames from all elements of the array");
index 82d0bff79b86c5d40e44bcd133d4b4d76c44c568..32078060ca6040ffeb406499a45bc32c5d3de89e 100644 (file)
@@ -140,13 +140,13 @@ static int add_default_keyingset_exec (bContext *C, wmOperator *UNUSED(op))
 void ANIM_OT_keying_set_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Empty Keying Set";
-       ot->idname= "ANIM_OT_keying_set_add";
-       ot->description= "Add a new (empty) Keying Set to the active Scene";
+       ot->name = "Add Empty Keying Set";
+       ot->idname = "ANIM_OT_keying_set_add";
+       ot->description = "Add a new (empty) Keying Set to the active Scene";
        
        /* callbacks */
-       ot->exec= add_default_keyingset_exec;
-       ot->poll= keyingset_poll_default_add;
+       ot->exec = add_default_keyingset_exec;
+       ot->poll = keyingset_poll_default_add;
 }
 
 /* Remove 'Active' Keying Set ------------------------- */
@@ -187,13 +187,13 @@ static int remove_active_keyingset_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keying_set_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Active Keying Set";
-       ot->idname= "ANIM_OT_keying_set_remove";
-       ot->description= "Remove the active Keying Set";
+       ot->name = "Remove Active Keying Set";
+       ot->idname = "ANIM_OT_keying_set_remove";
+       ot->description = "Remove the active Keying Set";
        
        /* callbacks */
-       ot->exec= remove_active_keyingset_exec;
-       ot->poll= keyingset_poll_active_edit;
+       ot->exec = remove_active_keyingset_exec;
+       ot->poll = keyingset_poll_active_edit;
 }
 
 /* Add Empty Keying Set Path ------------------------- */
@@ -230,13 +230,13 @@ static int add_empty_ks_path_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keying_set_path_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Empty Keying Set Path";
-       ot->idname= "ANIM_OT_keying_set_path_add";
-       ot->description= "Add empty path to active Keying Set";
+       ot->name = "Add Empty Keying Set Path";
+       ot->idname = "ANIM_OT_keying_set_path_add";
+       ot->description = "Add empty path to active Keying Set";
        
        /* callbacks */
-       ot->exec= add_empty_ks_path_exec;
-       ot->poll= keyingset_poll_active_edit;
+       ot->exec = add_empty_ks_path_exec;
+       ot->poll = keyingset_poll_active_edit;
 }
 
 /* Remove Active Keying Set Path ------------------------- */
@@ -273,13 +273,13 @@ static int remove_active_ks_path_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keying_set_path_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Active Keying Set Path";
-       ot->idname= "ANIM_OT_keying_set_path_remove";
-       ot->description= "Remove active Path from active Keying Set";
+       ot->name = "Remove Active Keying Set Path";
+       ot->idname = "ANIM_OT_keying_set_path_remove";
+       ot->description = "Remove active Path from active Keying Set";
        
        /* callbacks */
-       ot->exec= remove_active_ks_path_exec;
-       ot->poll= keyingset_poll_activePath_edit;
+       ot->exec = remove_active_ks_path_exec;
+       ot->poll = keyingset_poll_activePath_edit;
 }
 
 /* ************************************************** */
@@ -371,15 +371,15 @@ static int add_keyingset_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyingset_button_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add to Keying Set";
-       ot->idname= "ANIM_OT_keyingset_button_add";
+       ot->name = "Add to Keying Set";
+       ot->idname = "ANIM_OT_keyingset_button_add";
        
        /* callbacks */
-       ot->exec= add_keyingset_button_exec; 
+       ot->exec = add_keyingset_button_exec; 
        //op->poll= ???
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "all", 1, "All", "Add all elements of the array to a Keying Set");
@@ -450,15 +450,15 @@ static int remove_keyingset_button_exec (bContext *C, wmOperator *op)
 void ANIM_OT_keyingset_button_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove from Keying Set";
-       ot->idname= "ANIM_OT_keyingset_button_remove";
+       ot->name = "Remove from Keying Set";
+       ot->idname = "ANIM_OT_keyingset_button_remove";
        
        /* callbacks */
-       ot->exec= remove_keyingset_button_exec; 
+       ot->exec = remove_keyingset_button_exec; 
        //op->poll= ???
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ******************************************* */
@@ -499,16 +499,16 @@ void ANIM_OT_keying_set_active_set (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Set Active Keying Set";
-       ot->idname= "ANIM_OT_keying_set_active_set";
+       ot->name = "Set Active Keying Set";
+       ot->idname = "ANIM_OT_keying_set_active_set";
        
        /* callbacks */
-       ot->invoke= keyingset_active_menu_invoke;
-       ot->exec= keyingset_active_menu_exec; 
-       ot->poll= ED_operator_areaactive;
+       ot->invoke = keyingset_active_menu_invoke;
+       ot->exec = keyingset_active_menu_exec; 
+       ot->poll = ED_operator_areaactive;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* keyingset to use (dynamic enum) */
        prop= RNA_def_enum(ot->srna, "type", DummyRNA_DEFAULT_items, 0, "Keying Set", "The Keying Set to use");
index ad52f4e61cb267ee84717392bf6853d52ff421fb..cfc87941dd31f0cd19142a634cd8c359b1c6dae8 100644 (file)
@@ -172,7 +172,7 @@ void ED_operatormacros_armature(void)
        
        ot= WM_operatortype_append_macro("ARMATURE_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER);
        if(ot) {
-               ot->description= "Make copies of the selected bones within the same armature and move them";
+               ot->description = "Make copies of the selected bones within the same armature and move them";
                WM_operatortype_macro_define(ot, "ARMATURE_OT_duplicate");
                otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
                RNA_enum_set(otmacro->ptr, "proportional", 0);
@@ -180,7 +180,7 @@ void ED_operatormacros_armature(void)
 
        ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_move", "Extrude", OPTYPE_UNDO|OPTYPE_REGISTER);
        if(ot) {
-               ot->description= "Create new bones from the selected joints and move them";
+               ot->description = "Create new bones from the selected joints and move them";
                otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
                RNA_boolean_set(otmacro->ptr, "forked", FALSE);
                otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
@@ -191,7 +191,7 @@ void ED_operatormacros_armature(void)
        // that would require fixing a properties bug 19733
        ot= WM_operatortype_append_macro("ARMATURE_OT_extrude_forked", "Extrude Forked", OPTYPE_UNDO|OPTYPE_REGISTER);
        if(ot) {
-               ot->description= "Create new bones from the selected joints and move them";
+               ot->description = "Create new bones from the selected joints and move them";
                otmacro=WM_operatortype_macro_define(ot, "ARMATURE_OT_extrude");
                RNA_boolean_set(otmacro->ptr, "forked", TRUE);
                otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate");
index 0bc0d214b8b2e2e034c594155ff2492a9a2829dc..321aa30f55a6bdb3a1ce4e4f731f2695d2453a2e 100644 (file)
@@ -729,16 +729,16 @@ static int apply_armature_pose2bones_exec (bContext *C, wmOperator *op)
 void POSE_OT_armature_apply (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Apply Pose as Rest Pose";
-       ot->idname= "POSE_OT_armature_apply";
-       ot->description= "Apply the current pose as the new rest pose";
+       ot->name = "Apply Pose as Rest Pose";
+       ot->idname = "POSE_OT_armature_apply";
+       ot->description = "Apply the current pose as the new rest pose";
        
        /* callbacks */
-       ot->exec= apply_armature_pose2bones_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = apply_armature_pose2bones_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -780,16 +780,16 @@ static int pose_visual_transform_apply_exec (bContext *C, wmOperator *UNUSED(op)
 void POSE_OT_visual_transform_apply (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Apply Visual Transform to Pose";
-       ot->idname= "POSE_OT_visual_transform_apply";
-       ot->description= "Apply final constrained position of pose bones to their transform";
+       ot->name = "Apply Visual Transform to Pose";
+       ot->idname = "POSE_OT_visual_transform_apply";
+       ot->description = "Apply final constrained position of pose bones to their transform";
        
        /* callbacks */
-       ot->exec= pose_visual_transform_apply_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_visual_transform_apply_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ---------------------- */
@@ -1243,17 +1243,17 @@ static int separate_armature_exec (bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_separate (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Separate Bones";
-       ot->idname= "ARMATURE_OT_separate";
-       ot->description= "Isolate selected bones into a separate armature";
+       ot->name = "Separate Bones";
+       ot->idname = "ARMATURE_OT_separate";
+       ot->description = "Isolate selected bones into a separate armature";
        
        /* callbacks */
-       ot->invoke= WM_operator_confirm;
-       ot->exec= separate_armature_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->invoke = WM_operator_confirm;
+       ot->exec = separate_armature_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* **************** END tools on Editmode Armature **************** */
@@ -1467,17 +1467,17 @@ static int pose_select_linked_poll(bContext *C)
 void POSE_OT_select_linked(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Connected";
-       ot->idname= "POSE_OT_select_linked";
-       ot->description= "Select bones related to selected ones by parent/child relationships";
+       ot->name = "Select Connected";
+       ot->idname = "POSE_OT_select_linked";
+       ot->description = "Select bones related to selected ones by parent/child relationships";
        
        /* api callbacks */
-       ot->exec= NULL;
-       ot->invoke= pose_select_connected_invoke;
-       ot->poll= pose_select_linked_poll;
+       ot->exec = NULL;
+       ot->invoke = pose_select_connected_invoke;
+       ot->poll = pose_select_linked_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */     
        RNA_def_boolean(ot->srna, "extend", FALSE, "Extend", "Extend selection instead of deselecting everything first");
@@ -1561,17 +1561,17 @@ static int armature_select_linked_poll(bContext *C)
 void ARMATURE_OT_select_linked(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Connected";
-       ot->idname= "ARMATURE_OT_select_linked";
-       ot->description= "Select bones related to selected ones by parent/child relationships";
+       ot->name = "Select Connected";
+       ot->idname = "ARMATURE_OT_select_linked";
+       ot->description = "Select bones related to selected ones by parent/child relationships";
        
        /* api callbacks */
-       ot->exec= NULL;
-       ot->invoke= armature_select_linked_invoke;
-       ot->poll= armature_select_linked_poll;
+       ot->exec = NULL;
+       ot->invoke = armature_select_linked_invoke;
+       ot->poll = armature_select_linked_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties s*/
        RNA_def_boolean(ot->srna, "extend", FALSE, "Extend", "Extend selection instead of deselecting everything first");
@@ -1746,9 +1746,9 @@ static int armature_delete_selected_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Selected Bone(s)";
-       ot->idname= "ARMATURE_OT_delete";
-       ot->description= "Remove selected bones from the armature";
+       ot->name = "Delete Selected Bone(s)";
+       ot->idname = "ARMATURE_OT_delete";
+       ot->description = "Remove selected bones from the armature";
        
        /* api callbacks */
        ot->invoke = WM_operator_confirm;
@@ -1756,7 +1756,7 @@ void ARMATURE_OT_delete(wmOperatorType *ot)
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* toggle==0: deselect
@@ -2101,9 +2101,9 @@ static int armature_calc_roll_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_calculate_roll(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Recalculate Roll";
-       ot->idname= "ARMATURE_OT_calculate_roll";
-       ot->description= "Automatically fix alignment of select bones' axes";
+       ot->name = "Recalculate Roll";
+       ot->idname = "ARMATURE_OT_calculate_roll";
+       ot->description = "Automatically fix alignment of select bones' axes";
        
        /* api callbacks */
        ot->invoke = WM_menu_invoke;
@@ -2111,10 +2111,10 @@ void ARMATURE_OT_calculate_roll(wmOperatorType *ot)
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_calc_roll_types, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", prop_calc_roll_types, 0, "Type", "");
        RNA_def_boolean(ot->srna, "axis_flip", 0, "Flip Axis", "Negate the alignment axis");
        RNA_def_boolean(ot->srna, "axis_only", 0, "Shortest Rotation", "Ignore the axis direction, use the shortest rotation to align");
 }
@@ -2408,9 +2408,9 @@ static int armature_click_extrude_invoke(bContext *C, wmOperator *op, wmEvent *e
 void ARMATURE_OT_click_extrude(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Click-Extrude";
-       ot->idname= "ARMATURE_OT_click_extrude";
-       ot->description= "Create a new bone going from the last selected joint to the mouse position";
+       ot->name = "Click-Extrude";
+       ot->idname = "ARMATURE_OT_click_extrude";
+       ot->description = "Create a new bone going from the last selected joint to the mouse position";
        
        /* api callbacks */
        ot->invoke = armature_click_extrude_invoke;
@@ -2418,7 +2418,7 @@ void ARMATURE_OT_click_extrude(wmOperatorType *ot)
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
 }
@@ -2676,16 +2676,16 @@ static int armature_duplicate_selected_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_duplicate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Selected Bone(s)";
-       ot->idname= "ARMATURE_OT_duplicate";
-       ot->description= "Make copies of the selected bones within the same armature";
+       ot->name = "Duplicate Selected Bone(s)";
+       ot->idname = "ARMATURE_OT_duplicate";
+       ot->description = "Make copies of the selected bones within the same armature";
        
        /* api callbacks */
        ot->exec = armature_duplicate_selected_exec;
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -2950,16 +2950,16 @@ static int armature_fill_bones_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_fill (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Fill Between Joints";
-       ot->idname= "ARMATURE_OT_fill";
-       ot->description= "Add bone between selected joint(s) and/or 3D-Cursor";
+       ot->name = "Fill Between Joints";
+       ot->idname = "ARMATURE_OT_fill";
+       ot->description = "Add bone between selected joint(s) and/or 3D-Cursor";
        
        /* callbacks */
-       ot->exec= armature_fill_bones_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_fill_bones_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* --------------------- */
@@ -3134,20 +3134,20 @@ void ARMATURE_OT_merge (wmOperatorType *ot)
        };
 
        /* identifiers */
-       ot->name= "Merge Bones";
-       ot->idname= "ARMATURE_OT_merge";
-       ot->description= "Merge continuous chains of selected bones";
+       ot->name = "Merge Bones";
+       ot->idname = "ARMATURE_OT_merge";
+       ot->description = "Merge continuous chains of selected bones";
        
        /* callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= armature_merge_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = armature_merge_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", merge_types, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", merge_types, 0, "Type", "");
 }
 
 /* ************** END Add/Remove stuff in editmode ************ */
@@ -3183,16 +3183,16 @@ static int armature_hide_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_hide(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Hide Selected Bones";
-       ot->idname= "ARMATURE_OT_hide";
-       ot->description= "Tag selected bones to not be visible in Edit Mode";
+       ot->name = "Hide Selected Bones";
+       ot->idname = "ARMATURE_OT_hide";
+       ot->description = "Tag selected bones to not be visible in Edit Mode";
        
        /* api callbacks */
-       ot->exec= armature_hide_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_hide_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
        RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected");
@@ -3223,16 +3223,16 @@ static int armature_reveal_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_reveal(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal Bones";
-       ot->idname= "ARMATURE_OT_reveal";
-       ot->description= "Unhide all bones that have been tagged to be hidden in Edit Mode";
+       ot->name = "Reveal Bones";
+       ot->idname = "ARMATURE_OT_reveal";
+       ot->description = "Unhide all bones that have been tagged to be hidden in Edit Mode";
        
        /* api callbacks */
-       ot->exec= armature_reveal_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_reveal_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
 }
 #if 0 // remove this?
@@ -3432,16 +3432,16 @@ static int armature_extrude_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_extrude(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Extrude";
-       ot->idname= "ARMATURE_OT_extrude";
-       ot->description= "Create new bones from the selected joints";
+       ot->name = "Extrude";
+       ot->idname = "ARMATURE_OT_extrude";
+       ot->description = "Create new bones from the selected joints";
        
        /* api callbacks */
-       ot->exec= armature_extrude_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_extrude_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_boolean(ot->srna, "forked", 0, "Forked", "");
@@ -3495,16 +3495,16 @@ static int armature_bone_primitive_add_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_bone_primitive_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Bone";
-       ot->idname= "ARMATURE_OT_bone_primitive_add";
-       ot->description= "Add a new bone located at the 3D-Cursor";
+       ot->name = "Add Bone";
+       ot->idname = "ARMATURE_OT_bone_primitive_add";
+       ot->description = "Add a new bone located at the 3D-Cursor";
        
        /* api callbacks */
        ot->exec = armature_bone_primitive_add_exec;
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_string(ot->srna, "name", "Bone", MAXBONENAME, "Name", "Name of the newly created bone");
        
@@ -3587,16 +3587,16 @@ void ARMATURE_OT_subdivide(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Subdivide Multi";
-       ot->idname= "ARMATURE_OT_subdivide";
-       ot->description= "Break selected bones into chains of smaller bones";
+       ot->name = "Subdivide Multi";
+       ot->idname = "ARMATURE_OT_subdivide";
+       ot->description = "Break selected bones into chains of smaller bones";
        
        /* api callbacks */
        ot->exec = armature_subdivide_exec;
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* Properties */
        prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, "Number of Cuts", "", 1, 10);
@@ -3691,16 +3691,16 @@ static int armature_switch_direction_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_switch_direction(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Switch Direction";
-       ot->idname= "ARMATURE_OT_switch_direction";
-       ot->description= "Change the direction that a chain of bones points in (head <-> tail swap)";
+       ot->name = "Switch Direction";
+       ot->idname = "ARMATURE_OT_switch_direction";
+       ot->description = "Change the direction that a chain of bones points in (head <-> tail swap)";
        
        /* api callbacks */
        ot->exec = armature_switch_direction_exec;
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 /* ***************** Parenting *********************** */
 
@@ -3866,9 +3866,9 @@ static int armature_parent_set_invoke(bContext *C, wmOperator *UNUSED(op), wmEve
 void ARMATURE_OT_parent_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Make Parent";
-       ot->idname= "ARMATURE_OT_parent_set";
-       ot->description= "Set the active bone as the parent of the selected bones";
+       ot->name = "Make Parent";
+       ot->idname = "ARMATURE_OT_parent_set";
+       ot->description = "Set the active bone as the parent of the selected bones";
        
        /* api callbacks */
        ot->invoke = armature_parent_set_invoke;
@@ -3876,7 +3876,7 @@ void ARMATURE_OT_parent_set(wmOperatorType *ot)
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_enum(ot->srna, "type", prop_editarm_make_parent_types, 0, "ParentType", "Type of parenting");
 }
@@ -3920,9 +3920,9 @@ static int armature_parent_clear_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_parent_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Parent";
-       ot->idname= "ARMATURE_OT_parent_clear";
-       ot->description= "Remove the parent-child relationship between selected bones and their parents";
+       ot->name = "Clear Parent";
+       ot->idname = "ARMATURE_OT_parent_clear";
+       ot->description = "Remove the parent-child relationship between selected bones and their parents";
        
        /* api callbacks */
        ot->invoke = WM_menu_invoke;
@@ -3930,9 +3930,9 @@ void ARMATURE_OT_parent_clear(wmOperatorType *ot)
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_editarm_clear_parent_types, 0, "ClearType", "What way to clear parenting");
+       ot->prop = RNA_def_enum(ot->srna, "type", prop_editarm_clear_parent_types, 0, "ClearType", "What way to clear parenting");
 }
 
 /* ****************  Selections  ******************/
@@ -3957,16 +3957,16 @@ static int armature_select_inverse_exec(bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_select_inverse(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Inverse";
-       ot->idname= "ARMATURE_OT_select_inverse";
-       ot->description= "Flip the selection status of bones (selected -> unselected, unselected -> selected)";
+       ot->name = "Select Inverse";
+       ot->idname = "ARMATURE_OT_select_inverse";
+       ot->description = "Flip the selection status of bones (selected -> unselected, unselected -> selected)";
        
        /* api callbacks */
-       ot->exec= armature_select_inverse_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_select_inverse_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
 }
 static int armature_de_select_all_exec(bContext *C, wmOperator *op)
@@ -4017,16 +4017,16 @@ static int armature_de_select_all_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select All";
-       ot->idname= "ARMATURE_OT_select_all";
-       ot->description= "Toggle selection status of all bones";
+       ot->name = "(De)select All";
+       ot->idname = "ARMATURE_OT_select_all";
+       ot->description = "Toggle selection status of all bones";
        
        /* api callbacks */
-       ot->exec= armature_de_select_all_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_de_select_all_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        WM_operator_properties_select_all(ot);
 }
@@ -4098,16 +4098,16 @@ void ARMATURE_OT_select_hierarchy(wmOperatorType *ot)
        };
        
        /* identifiers */
-       ot->name= "Select Hierarchy";
-       ot->idname= "ARMATURE_OT_select_hierarchy";
-       ot->description= "Select immediate parent/children of selected bones";
+       ot->name = "Select Hierarchy";
+       ot->idname = "ARMATURE_OT_select_hierarchy";
+       ot->description = "Select immediate parent/children of selected bones";
        
        /* api callbacks */
-       ot->exec= armature_select_hierarchy_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_select_hierarchy_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* props */
        RNA_def_enum(ot->srna, "direction", direction_items,
@@ -4237,9 +4237,9 @@ static int armature_align_bones_exec(bContext *C, wmOperator *op)
 void ARMATURE_OT_align(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Align Bones";
-       ot->idname= "ARMATURE_OT_align";
-       ot->description= "Align selected bones to the active bone (or to their parent)";
+       ot->name = "Align Bones";
+       ot->idname = "ARMATURE_OT_align";
+       ot->description = "Align selected bones to the active bone (or to their parent)";
        
        /* api callbacks */
        ot->invoke = WM_operator_confirm;
@@ -4247,7 +4247,7 @@ void ARMATURE_OT_align(wmOperatorType *ot)
        ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ***************** Pose tools ********************* */
@@ -4957,8 +4957,8 @@ static int pose_clear_scale_exec(bContext *C, wmOperator *op)
 void POSE_OT_scale_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Scale";
-       ot->idname= "POSE_OT_scale_clear";
+       ot->name = "Clear Pose Scale";
+       ot->idname = "POSE_OT_scale_clear";
        ot->description = "Reset scaling of selected bones to their default values";
        
        /* api callbacks */
@@ -4966,7 +4966,7 @@ void POSE_OT_scale_clear(wmOperatorType *ot)
        ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -4978,8 +4978,8 @@ static int pose_clear_rot_exec(bContext *C, wmOperator *op)
 void POSE_OT_rot_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Rotation";
-       ot->idname= "POSE_OT_rot_clear";
+       ot->name = "Clear Pose Rotation";
+       ot->idname = "POSE_OT_rot_clear";
        ot->description = "Reset rotations of selected bones to their default values";
        
        /* api callbacks */
@@ -4987,7 +4987,7 @@ void POSE_OT_rot_clear(wmOperatorType *ot)
        ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -4999,8 +4999,8 @@ static int pose_clear_loc_exec(bContext *C, wmOperator *op)
 void POSE_OT_loc_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Location";
-       ot->idname= "POSE_OT_loc_clear";
+       ot->name = "Clear Pose Location";
+       ot->idname = "POSE_OT_loc_clear";
        ot->description = "Reset locations of selected bones to their default values";
        
        /* api callbacks */
@@ -5008,7 +5008,7 @@ void POSE_OT_loc_clear(wmOperatorType *ot)
        ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -5020,8 +5020,8 @@ static int pose_clear_transforms_exec(bContext *C, wmOperator *op)
 void POSE_OT_transforms_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Pose Transforms";
-       ot->idname= "POSE_OT_transforms_clear";
+       ot->name = "Clear Pose Transforms";
+       ot->idname = "POSE_OT_transforms_clear";
        ot->description = "Reset location, rotation, and scaling of selected bones to their default values";
        
        /* api callbacks */
@@ -5029,7 +5029,7 @@ void POSE_OT_transforms_clear(wmOperatorType *ot)
        ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ***************** selections ********************** */
@@ -5081,16 +5081,16 @@ static int pose_de_select_all_exec(bContext *C, wmOperator *op)
 void POSE_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select All";
-       ot->idname= "POSE_OT_select_all";
-       ot->description= "Toggle selection status of all bones";
+       ot->name = "(De)select All";
+       ot->idname = "POSE_OT_select_all";
+       ot->description = "Toggle selection status of all bones";
        
        /* api callbacks */
-       ot->exec= pose_de_select_all_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_de_select_all_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        WM_operator_properties_select_all(ot);
 }
@@ -5125,16 +5125,16 @@ static int pose_select_parent_exec(bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_select_parent(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Parent Bone";
-       ot->idname= "POSE_OT_select_parent";
-       ot->description= "Select bones that are parents of the currently selected bones";
+       ot->name = "Select Parent Bone";
+       ot->idname = "POSE_OT_select_parent";
+       ot->description = "Select bones that are parents of the currently selected bones";
 
        /* api callbacks */
-       ot->exec= pose_select_parent_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_select_parent_exec;
+       ot->poll = ED_operator_posemode;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
 }
 
@@ -5190,16 +5190,16 @@ static int pose_hide_exec(bContext *C, wmOperator *op)
 void POSE_OT_hide(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Hide Selected";
-       ot->idname= "POSE_OT_hide";
-       ot->description= "Tag selected bones to not be visible in Pose Mode";
+       ot->name = "Hide Selected";
+       ot->idname = "POSE_OT_hide";
+       ot->description = "Tag selected bones to not be visible in Pose Mode";
        
        /* api callbacks */
-       ot->exec= pose_hide_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_hide_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "");
@@ -5236,16 +5236,16 @@ static int pose_reveal_exec(bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_reveal(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal Selected";
-       ot->idname= "POSE_OT_reveal";
-       ot->description= "Unhide all bones that have been tagged to be hidden in Pose Mode";
+       ot->name = "Reveal Selected";
+       ot->idname = "POSE_OT_reveal";
+       ot->description = "Unhide all bones that have been tagged to be hidden in Pose Mode";
        
        /* api callbacks */
-       ot->exec= pose_reveal_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_reveal_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ************* RENAMING DISASTERS ************ */
@@ -5451,16 +5451,16 @@ static int armature_flip_names_exec (bContext *C, wmOperator *UNUSED(op))
 void ARMATURE_OT_flip_names (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Flip Names";
-       ot->idname= "ARMATURE_OT_flip_names";
-       ot->description= "Flips (and corrects) the axis suffixes of the names of selected bones";
+       ot->name = "Flip Names";
+       ot->idname = "ARMATURE_OT_flip_names";
+       ot->description = "Flips (and corrects) the axis suffixes of the names of selected bones";
        
        /* api callbacks */
-       ot->exec= armature_flip_names_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->exec = armature_flip_names_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 
@@ -5503,20 +5503,20 @@ void ARMATURE_OT_autoside_names (wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
        
        /* identifiers */
-       ot->name= "AutoName by Axis";
-       ot->idname= "ARMATURE_OT_autoside_names";
-       ot->description= "Automatically renames the selected bones according to which side of the target axis they fall on";
+       ot->name = "AutoName by Axis";
+       ot->idname = "ARMATURE_OT_autoside_names";
+       ot->description = "Automatically renames the selected bones according to which side of the target axis they fall on";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= armature_autoside_names_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = armature_autoside_names_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* settings */
-       ot->prop= RNA_def_enum(ot->srna, "type", axis_items, 0, "Axis", "Axis tag names with");
+       ot->prop = RNA_def_enum(ot->srna, "type", axis_items, 0, "Axis", "Axis tag names with");
 }
 
 
index 27e2d12a288211ff7e723e7a8b8c9d16785ff957..5e5789d411f43499d8c22a75941619c1ab41e121 100644 (file)
@@ -2839,130 +2839,130 @@ int ED_operator_sketch_mode(const bContext *C)
 void SKETCH_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete";
-       ot->idname= "SKETCH_OT_delete";
+       ot->name = "Delete";
+       ot->idname = "SKETCH_OT_delete";
 
        /* api callbacks */
-       ot->invoke= sketch_delete;
+       ot->invoke = sketch_delete;
 
-       ot->poll= ED_operator_sketch_full_mode;
+       ot->poll = ED_operator_sketch_full_mode;
 
        /* flags */
-//     ot->flag= OPTYPE_UNDO;
+//     ot->flag = OPTYPE_UNDO;
 }
 
 void SKETCH_OT_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select";
-       ot->idname= "SKETCH_OT_select";
+       ot->name = "Select";
+       ot->idname = "SKETCH_OT_select";
 
        /* api callbacks */
-       ot->invoke= sketch_select;
+       ot->invoke = sketch_select;
 
-       ot->poll= ED_operator_sketch_full_mode;
+       ot->poll = ED_operator_sketch_full_mode;
 
        /* flags */
-//     ot->flag= OPTYPE_UNDO;
+//     ot->flag = OPTYPE_UNDO;
 }
 
 void SKETCH_OT_cancel_stroke(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Cancel Stroke";
-       ot->idname= "SKETCH_OT_cancel_stroke";
+       ot->name = "Cancel Stroke";
+       ot->idname = "SKETCH_OT_cancel_stroke";
 
        /* api callbacks */
-       ot->invoke= sketch_cancel;
+       ot->invoke = sketch_cancel;
 
-       ot->poll= ED_operator_sketch_mode_active_stroke;
+       ot->poll = ED_operator_sketch_mode_active_stroke;
 
        /* flags */
-//     ot->flag= OPTYPE_UNDO;
+//     ot->flag = OPTYPE_UNDO;
 }
 
 void SKETCH_OT_convert(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Convert";
-       ot->idname= "SKETCH_OT_convert";
+       ot->name = "Convert";
+       ot->idname = "SKETCH_OT_convert";
 
        /* api callbacks */
-       ot->invoke= sketch_convert;
+       ot->invoke = sketch_convert;
 
-       ot->poll= ED_operator_sketch_full_mode;
+       ot->poll = ED_operator_sketch_full_mode;
 
        /* flags */
-       ot->flag= OPTYPE_UNDO;
+       ot->flag = OPTYPE_UNDO;
 }
 
 void SKETCH_OT_finish_stroke(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "End Stroke";
-       ot->idname= "SKETCH_OT_finish_stroke";
+       ot->name = "End Stroke";
+       ot->idname = "SKETCH_OT_finish_stroke";
 
        /* api callbacks */
-       ot->invoke= sketch_finish;
+       ot->invoke = sketch_finish;
 
-       ot->poll= ED_operator_sketch_mode_active_stroke;
+       ot->poll = ED_operator_sketch_mode_active_stroke;
 
        /* flags */
-//     ot->flag= OPTYPE_UNDO;
+//     ot->flag = OPTYPE_UNDO;
 }
 
 void SKETCH_OT_draw_preview(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Draw Preview";
-       ot->idname= "SKETCH_OT_draw_preview";
+       ot->name = "Draw Preview";
+       ot->idname = "SKETCH_OT_draw_preview";
 
        /* api callbacks */
-       ot->invoke= sketch_draw_preview;
+       ot->invoke = sketch_draw_preview;
 
-       ot->poll= ED_operator_sketch_mode_active_stroke;
+       ot->poll = ED_operator_sketch_mode_active_stroke;
 
        RNA_def_boolean(ot->srna, "snap", 0, "Snap", "");
 
        /* flags */
-//     ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+//     ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 void SKETCH_OT_draw_stroke(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Draw Stroke";
-       ot->idname= "SKETCH_OT_draw_stroke";
+       ot->name = "Draw Stroke";
+       ot->idname = "SKETCH_OT_draw_stroke";
 
        /* api callbacks */
        ot->invoke = sketch_draw_stroke;
        ot->modal  = sketch_draw_stroke_modal;
        ot->cancel = sketch_draw_stroke_cancel;
 
-       ot->poll= (int (*)(bContext *))ED_operator_sketch_mode;
+       ot->poll = (int (*)(bContext *))ED_operator_sketch_mode;
 
        RNA_def_boolean(ot->srna, "snap", 0, "Snap", "");
 
        /* flags */
-       ot->flag= OPTYPE_BLOCKING; // OPTYPE_REGISTER|OPTYPE_UNDO
+       ot->flag = OPTYPE_BLOCKING; // OPTYPE_REGISTER|OPTYPE_UNDO
 }
 
 void SKETCH_OT_gesture(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Gesture";
-       ot->idname= "SKETCH_OT_gesture";
+       ot->name = "Gesture";
+       ot->idname = "SKETCH_OT_gesture";
 
        /* api callbacks */
        ot->invoke = sketch_draw_gesture;
        ot->modal  = sketch_draw_gesture_modal;
        ot->cancel = sketch_draw_gesture_cancel;
 
-       ot->poll= ED_operator_sketch_mode_gesture;
+       ot->poll = ED_operator_sketch_mode_gesture;
 
        RNA_def_boolean(ot->srna, "snap", 0, "Snap", "");
 
        /* flags */
-       ot->flag= OPTYPE_BLOCKING; // OPTYPE_UNDO
+       ot->flag = OPTYPE_BLOCKING; // OPTYPE_UNDO
 }
 
index adabf7405d6bd3f330d921166922a9bb1a1721a7..de7a243f75f8bc6f61371298372407c80441fa41 100644 (file)
@@ -762,19 +762,19 @@ static int pose_slide_push_exec (bContext *C, wmOperator *op)
 void POSE_OT_push (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Push Pose";
-       ot->idname= "POSE_OT_push";
-       ot->description= "Exaggerate the current pose";
+       ot->name = "Push Pose";
+       ot->idname = "POSE_OT_push";
+       ot->description = "Exaggerate the current pose";
        
        /* callbacks */
-       ot->exec= pose_slide_push_exec;
-       ot->invoke= pose_slide_push_invoke;
-       ot->modal= pose_slide_modal;
-       ot->cancel= pose_slide_cancel;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_slide_push_exec;
+       ot->invoke = pose_slide_push_invoke;
+       ot->modal = pose_slide_modal;
+       ot->cancel = pose_slide_cancel;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
        
        /* Properties */
        pose_slide_opdef_properties(ot);
@@ -819,19 +819,19 @@ static int pose_slide_relax_exec (bContext *C, wmOperator *op)
 void POSE_OT_relax (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Relax Pose";
-       ot->idname= "POSE_OT_relax";
-       ot->description= "Make the current pose more similar to its surrounding ones";
+       ot->name = "Relax Pose";
+       ot->idname = "POSE_OT_relax";
+       ot->description = "Make the current pose more similar to its surrounding ones";
        
        /* callbacks */
-       ot->exec= pose_slide_relax_exec;
-       ot->invoke= pose_slide_relax_invoke;
-       ot->modal= pose_slide_modal;
-       ot->cancel= pose_slide_cancel;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_slide_relax_exec;
+       ot->invoke = pose_slide_relax_invoke;
+       ot->modal = pose_slide_modal;
+       ot->cancel = pose_slide_cancel;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
        
        /* Properties */
        pose_slide_opdef_properties(ot);
@@ -876,19 +876,19 @@ static int pose_slide_breakdown_exec (bContext *C, wmOperator *op)
 void POSE_OT_breakdown (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Pose Breakdowner";
-       ot->idname= "POSE_OT_breakdown";
-       ot->description= "Create a suitable breakdown pose on the current frame";
+       ot->name = "Pose Breakdowner";
+       ot->idname = "POSE_OT_breakdown";
+       ot->description = "Create a suitable breakdown pose on the current frame";
        
        /* callbacks */
-       ot->exec= pose_slide_breakdown_exec;
-       ot->invoke= pose_slide_breakdown_invoke;
-       ot->modal= pose_slide_modal;
-       ot->cancel= pose_slide_cancel;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_slide_breakdown_exec;
+       ot->invoke = pose_slide_breakdown_invoke;
+       ot->modal = pose_slide_modal;
+       ot->cancel = pose_slide_cancel;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
        
        /* Properties */
        pose_slide_opdef_properties(ot);
@@ -1240,20 +1240,20 @@ void POSE_OT_propagate (wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
                
        /* identifiers */
-       ot->name= "Propagate Pose";
-       ot->idname= "POSE_OT_propagate";
-       ot->description= "Copy selected aspects of the current pose to subsequent poses already keyframed";
+       ot->name = "Propagate Pose";
+       ot->idname = "POSE_OT_propagate";
+       ot->description = "Copy selected aspects of the current pose to subsequent poses already keyframed";
        
        /* callbacks */
-       ot->exec= pose_propagate_exec;
-       ot->poll= ED_operator_posemode; // XXX: needs selected bones!
+       ot->exec = pose_propagate_exec;
+       ot->poll = ED_operator_posemode; // XXX: needs selected bones!
        
        /* flag */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        // TODO: add "fade out" control for tapering off amount of propagation as time goes by?
-       ot->prop= RNA_def_enum(ot->srna, "mode", terminate_items, POSE_PROPAGATE_SMART_HOLDS, "Terminate Mode", "Method used to determine when to stop propagating pose to keyframes");
+       ot->prop = RNA_def_enum(ot->srna, "mode", terminate_items, POSE_PROPAGATE_SMART_HOLDS, "Terminate Mode", "Method used to determine when to stop propagating pose to keyframes");
        RNA_def_float(ot->srna, "end_frame", 250.0, FLT_MIN, FLT_MAX, "End Frame", "Frame to stop propagating frames to (for 'Before Frame' mode)", 1.0, 250.0);
 }
 
index ef01b895f380457a988d87b4bfbcc2865e150e79..fbe05d7ef49c9eb8b6677707fda24e22d2ce4192 100644 (file)
@@ -241,10 +241,10 @@ void POSELIB_OT_new (wmOperatorType *ot)
        
        /* callbacks */
        ot->exec = poselib_new_exec;
-       ot->poll= ED_operator_posemode;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ------------------------------------------------ */
@@ -276,10 +276,10 @@ void POSELIB_OT_unlink (wmOperatorType *ot)
        
        /* callbacks */
        ot->exec = poselib_unlink_exec;
-       ot->poll= has_poselib_pose_data_poll;
+       ot->poll = has_poselib_pose_data_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ************************************************************* */
@@ -365,7 +365,7 @@ void POSELIB_OT_action_sanitise (wmOperatorType *ot)
        ot->poll = has_poselib_pose_data_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ------------------------------------------ */
@@ -486,17 +486,17 @@ static int poselib_add_exec (bContext *C, wmOperator *op)
 void POSELIB_OT_pose_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "PoseLib Add Pose";
-       ot->idname= "POSELIB_OT_pose_add";
-       ot->description= "Add the current Pose to the active Pose Library";
+       ot->name = "PoseLib Add Pose";
+       ot->idname = "POSELIB_OT_pose_add";
+       ot->description = "Add the current Pose to the active Pose Library";
        
        /* api callbacks */
-       ot->invoke= poselib_add_menu_invoke;
-       ot->exec= poselib_add_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = poselib_add_menu_invoke;
+       ot->exec = poselib_add_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_int(ot->srna, "frame", 1, 0, INT_MAX, "Frame", "Frame to store pose on", 0, INT_MAX);
@@ -592,22 +592,22 @@ void POSELIB_OT_pose_remove (wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "PoseLib Remove Pose";
-       ot->idname= "POSELIB_OT_pose_remove";
-       ot->description= "Remove nth pose from the active Pose Library";
+       ot->name = "PoseLib Remove Pose";
+       ot->idname = "POSELIB_OT_pose_remove";
+       ot->description = "Remove nth pose from the active Pose Library";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= poselib_remove_exec;
-       ot->poll= has_poselib_pose_data_poll;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = poselib_remove_exec;
+       ot->poll = has_poselib_pose_data_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        prop= RNA_def_enum(ot->srna, "pose", DummyRNA_DEFAULT_items, 0, "Pose", "The pose to remove");
                RNA_def_enum_funcs(prop, poselib_stored_pose_itemf);
-       ot->prop= prop;
+       ot->prop = prop;
 }
 
 static int poselib_rename_invoke (bContext *C, wmOperator *op, wmEvent *evt)
@@ -682,21 +682,21 @@ void POSELIB_OT_pose_rename (wmOperatorType *ot)
        };
        
        /* identifiers */
-       ot->name= "PoseLib Rename Pose";
-       ot->idname= "POSELIB_OT_pose_rename";
-       ot->description= "Rename specified pose from the active Pose Library";
+       ot->name = "PoseLib Rename Pose";
+       ot->idname = "POSELIB_OT_pose_rename";
+       ot->description = "Rename specified pose from the active Pose Library";
        
        /* api callbacks */
-       ot->invoke= poselib_rename_invoke;
-       ot->exec= poselib_rename_exec;
-       ot->poll= has_poselib_pose_data_poll;
+       ot->invoke = poselib_rename_invoke;
+       ot->exec = poselib_rename_exec;
+       ot->poll = has_poselib_pose_data_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
                /* NOTE: name not pose is the operator's "main" property, so that it will get activated in the popup for easy renaming */
-       ot->prop= RNA_def_string(ot->srna, "name", "RenamedPose", 64, "New Pose Name", "New name for pose");
+       ot->prop = RNA_def_string(ot->srna, "name", "RenamedPose", 64, "New Pose Name", "New name for pose");
        prop= RNA_def_enum(ot->srna, "pose", prop_poses_dummy_types, 0, "Pose", "The pose to rename");
                RNA_def_enum_funcs(prop, poselib_stored_pose_itemf);
 }
@@ -1613,23 +1613,23 @@ static int poselib_preview_exec (bContext *C, wmOperator *op)
 void POSELIB_OT_browse_interactive (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "PoseLib Browse Poses";
-       ot->idname= "POSELIB_OT_browse_interactive";
-       ot->description= "Interactively browse poses in 3D-View";
+       ot->name = "PoseLib Browse Poses";
+       ot->idname = "POSELIB_OT_browse_interactive";
+       ot->description = "Interactively browse poses in 3D-View";
        
        /* callbacks */
-       ot->invoke= poselib_preview_invoke;
-       ot->modal= poselib_preview_modal;
-       ot->cancel= poselib_preview_cancel;
-       ot->exec= poselib_preview_exec;
-       ot->poll= has_poselib_pose_data_poll;
+       ot->invoke = poselib_preview_invoke;
+       ot->modal = poselib_preview_modal;
+       ot->cancel = poselib_preview_cancel;
+       ot->exec = poselib_preview_exec;
+       ot->poll = has_poselib_pose_data_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
        
        /* properties */        
                // TODO: make the pose_index into a proper enum instead of a cryptic int...
-       ot->prop= RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, "Pose", "Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)", 0, INT_MAX);
+       ot->prop = RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, "Pose", "Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)", 0, INT_MAX);
        
        // XXX: percentage vs factor?
        /* not used yet */
@@ -1644,13 +1644,13 @@ void POSELIB_OT_apply_pose (wmOperatorType *ot)
        ot->description = "Apply specified Pose Library pose to the rig";
        
        /* callbacks */
-       ot->exec= poselib_preview_exec;
-       ot->poll= has_poselib_pose_data_poll;
+       ot->exec = poselib_preview_exec;
+       ot->poll = has_poselib_pose_data_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */        
                // TODO: make the pose_index into a proper enum instead of a cryptic int...
-       ot->prop= RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, "Pose", "Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)", 0, INT_MAX);
+       ot->prop = RNA_def_int(ot->srna, "pose_index", -1, -2, INT_MAX, "Pose", "Index of the pose to apply (-2 for no change to pose, -1 for poselib active pose)", 0, INT_MAX);
 }
index 282519896c77ef55aa0b375d7858f3a3e6615934..2689ec6856354249802c0ccc428ab094f620befc 100644 (file)
@@ -236,16 +236,16 @@ static int pose_calculate_paths_exec (bContext *C, wmOperator *op)
 void POSE_OT_paths_calculate (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Calculate Bone Paths";
-       ot->idname= "POSE_OT_paths_calculate";
-       ot->description= "Calculate paths for the selected bones";
+       ot->name = "Calculate Bone Paths";
+       ot->idname = "POSE_OT_paths_calculate";
+       ot->description = "Calculate paths for the selected bones";
        
        /* api callbacks */
-       ot->exec= pose_calculate_paths_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_calculate_paths_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* --------- */
@@ -304,13 +304,13 @@ static int pose_clear_paths_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_paths_clear (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Bone Paths";
-       ot->idname= "POSE_OT_paths_clear";
-       ot->description= "Clear path caches for selected bones";
+       ot->name = "Clear Bone Paths";
+       ot->idname = "POSE_OT_paths_clear";
+       ot->description = "Clear path caches for selected bones";
        
        /* api callbacks */
-       ot->exec= pose_clear_paths_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_clear_paths_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -364,16 +364,16 @@ static int pose_select_constraint_target_exec(bContext *C, wmOperator *UNUSED(op
 void POSE_OT_select_constraint_target(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Constraint Target";
-       ot->idname= "POSE_OT_select_constraint_target";
-       ot->description= "Select bones used as targets for the currently selected bones";
+       ot->name = "Select Constraint Target";
+       ot->idname = "POSE_OT_select_constraint_target";
+       ot->description = "Select bones used as targets for the currently selected bones";
        
        /* api callbacks */
-       ot->exec= pose_select_constraint_target_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_select_constraint_target_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ******************* select hierarchy operator ************* */
@@ -441,19 +441,19 @@ void POSE_OT_select_hierarchy(wmOperatorType *ot)
        };
        
        /* identifiers */
-       ot->name= "Select Hierarchy";
-       ot->idname= "POSE_OT_select_hierarchy";
-       ot->description= "Select immediate parent/children of selected bones";
+       ot->name = "Select Hierarchy";
+       ot->idname = "POSE_OT_select_hierarchy";
+       ot->description = "Select immediate parent/children of selected bones";
        
        /* api callbacks */
-       ot->exec= pose_select_hierarchy_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_select_hierarchy_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
-       ot->prop= RNA_def_enum(ot->srna, "direction", direction_items, BONE_SELECT_PARENT, "Direction", "");
+       ot->prop = RNA_def_enum(ot->srna, "direction", direction_items, BONE_SELECT_PARENT, "Direction", "");
        RNA_def_boolean(ot->srna, "extend", 0, "Add to Selection", "");
        
 }
@@ -661,21 +661,21 @@ void POSE_OT_select_grouped (wmOperatorType *ot)
        };
 
        /* identifiers */
-       ot->name= "Select Grouped";
+       ot->name = "Select Grouped";
        ot->description = "Select all visible bones grouped by similar properties";
-       ot->idname= "POSE_OT_select_grouped";
+       ot->idname = "POSE_OT_select_grouped";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= pose_select_grouped_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = pose_select_grouped_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean(ot->srna, "extend", FALSE, "Extend", "Extend selection instead of deselecting everything first");
-       ot->prop= RNA_def_enum(ot->srna, "type", prop_select_grouped_types, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", prop_select_grouped_types, 0, "Type", "");
 }
 
 
@@ -721,13 +721,13 @@ static int pose_bone_flip_active_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_select_flip_active(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Flip Selected Active Bone";
-       ot->idname= "POSE_OT_select_flip_active";
-       ot->description= "Activate the bone with a flipped name";
+       ot->name = "Flip Selected Active Bone";
+       ot->idname = "POSE_OT_select_flip_active";
+       ot->description = "Activate the bone with a flipped name";
        
        /* api callbacks */
-       ot->exec= pose_bone_flip_active_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_bone_flip_active_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1129,16 +1129,16 @@ static int pose_copy_exec (bContext *C, wmOperator *op)
 void POSE_OT_copy (wmOperatorType *ot) 
 {
        /* identifiers */
-       ot->name= "Copy Pose";
-       ot->idname= "POSE_OT_copy";
-       ot->description= "Copies the current pose of the selected bones to copy/paste buffer";
+       ot->name = "Copy Pose";
+       ot->idname = "POSE_OT_copy";
+       ot->description = "Copies the current pose of the selected bones to copy/paste buffer";
        
        /* api callbacks */
-       ot->exec= pose_copy_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_copy_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flag */
-       ot->flag= OPTYPE_REGISTER;
+       ot->flag = OPTYPE_REGISTER;
 }
 
 /* ---- */
@@ -1196,16 +1196,16 @@ static int pose_paste_exec (bContext *C, wmOperator *op)
 void POSE_OT_paste (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Paste Pose";
-       ot->idname= "POSE_OT_paste";
-       ot->description= "Paste the stored pose on to the current pose";
+       ot->name = "Paste Pose";
+       ot->idname = "POSE_OT_paste";
+       ot->description = "Paste the stored pose on to the current pose";
        
        /* api callbacks */
-       ot->exec= pose_paste_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_paste_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flag */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean(ot->srna, "flipped", FALSE, "Flipped on X-Axis", "Paste the stored pose flipped on to current pose");
@@ -1242,13 +1242,13 @@ static int pose_group_add_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_add (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Bone Group";
-       ot->idname= "POSE_OT_group_add";
-       ot->description= "Add a new bone group";
+       ot->name = "Add Bone Group";
+       ot->idname = "POSE_OT_group_add";
+       ot->description = "Add a new bone group";
        
        /* api callbacks */
-       ot->exec= pose_group_add_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_group_add_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1282,13 +1282,13 @@ static int pose_group_remove_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_remove (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Bone Group";
-       ot->idname= "POSE_OT_group_remove";
-       ot->description= "Removes the active bone group";
+       ot->name = "Remove Bone Group";
+       ot->idname = "POSE_OT_group_remove";
+       ot->description = "Removes the active bone group";
        
        /* api callbacks */
-       ot->exec= pose_group_remove_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_group_remove_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1397,14 +1397,14 @@ static int pose_group_assign_exec (bContext *C, wmOperator *op)
 void POSE_OT_group_assign (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Selected to Bone Group";
-       ot->idname= "POSE_OT_group_assign";
-       ot->description= "Add selected bones to the chosen bone group";
+       ot->name = "Add Selected to Bone Group";
+       ot->idname = "POSE_OT_group_assign";
+       ot->description = "Add selected bones to the chosen bone group";
        
        /* api callbacks */
-       ot->invoke= pose_groups_menu_invoke;
-       ot->exec= pose_group_assign_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = pose_groups_menu_invoke;
+       ot->exec = pose_group_assign_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1453,13 +1453,13 @@ static int pose_group_unassign_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_unassign (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Selected from Bone Groups";
-       ot->idname= "POSE_OT_group_unassign";
-       ot->description= "Remove selected bones from all bone groups";
+       ot->name = "Remove Selected from Bone Groups";
+       ot->idname = "POSE_OT_group_unassign";
+       ot->description = "Remove selected bones from all bone groups";
        
        /* api callbacks */
-       ot->exec= pose_group_unassign_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_group_unassign_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1534,16 +1534,16 @@ void POSE_OT_group_move(wmOperatorType *ot)
        };
 
        /* identifiers */
-       ot->name= "Move Bone Group";
-       ot->idname= "POSE_OT_group_move";
-       ot->description= "Change position of active Bone Group in list of Bone Groups";
+       ot->name = "Move Bone Group";
+       ot->idname = "POSE_OT_group_move";
+       ot->description = "Change position of active Bone Group in list of Bone Groups";
 
        /* api callbacks */
-       ot->exec= group_move_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = group_move_exec;
+       ot->poll = ED_operator_posemode;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        RNA_def_enum(ot->srna, "direction", group_slot_move, 0, "Direction", "Direction to move, UP or DOWN");
 }
@@ -1618,16 +1618,16 @@ static int group_sort_exec(bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_sort(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Sort Bone Groups";
-       ot->idname= "POSE_OT_group_sort";
-       ot->description= "Sort Bone Groups by their names in ascending order";
+       ot->name = "Sort Bone Groups";
+       ot->idname = "POSE_OT_group_sort";
+       ot->description = "Sort Bone Groups by their names in ascending order";
 
        /* api callbacks */
-       ot->exec= group_sort_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = group_sort_exec;
+       ot->poll = ED_operator_posemode;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static void pose_group_select(bContext *C, Object *ob, int select)
@@ -1676,13 +1676,13 @@ static int pose_group_select_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_select (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Bones of Bone Group";
-       ot->idname= "POSE_OT_group_select";
-       ot->description= "Select bones in active Bone Group";
+       ot->name = "Select Bones of Bone Group";
+       ot->idname = "POSE_OT_group_select";
+       ot->description = "Select bones in active Bone Group";
        
        /* api callbacks */
-       ot->exec= pose_group_select_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_group_select_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1714,13 +1714,13 @@ static int pose_group_deselect_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_group_deselect (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Deselect Bone Group";
-       ot->idname= "POSE_OT_group_deselect";
-       ot->description= "Deselect bones of active Bone Group";
+       ot->name = "Deselect Bone Group";
+       ot->idname = "POSE_OT_group_deselect";
+       ot->description = "Deselect bones of active Bone Group";
        
        /* api callbacks */
-       ot->exec= pose_group_deselect_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_group_deselect_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
        ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
@@ -1759,16 +1759,16 @@ static int pose_flip_names_exec (bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_flip_names (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Flip Names";
-       ot->idname= "POSE_OT_flip_names";
-       ot->description= "Flips (and corrects) the axis suffixes of the the names of selected bones";
+       ot->name = "Flip Names";
+       ot->idname = "POSE_OT_flip_names";
+       ot->description = "Flips (and corrects) the axis suffixes of the the names of selected bones";
        
        /* api callbacks */
-       ot->exec= pose_flip_names_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_flip_names_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ------------------ */
@@ -1812,20 +1812,20 @@ void POSE_OT_autoside_names (wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
        
        /* identifiers */
-       ot->name= "AutoName by Axis";
-       ot->idname= "POSE_OT_autoside_names";
-       ot->description= "Automatically renames the selected bones according to which side of the target axis they fall on";
+       ot->name = "AutoName by Axis";
+       ot->idname = "POSE_OT_autoside_names";
+       ot->description = "Automatically renames the selected bones according to which side of the target axis they fall on";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= pose_autoside_names_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = pose_autoside_names_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* settings */
-       ot->prop= RNA_def_enum(ot->srna, "axis", axis_items, 0, "Axis", "Axis tag names with");
+       ot->prop = RNA_def_enum(ot->srna, "axis", axis_items, 0, "Axis", "Axis tag names with");
 }
 
 /* ********************************************** */
@@ -1852,20 +1852,20 @@ static int pose_bone_rotmode_exec (bContext *C, wmOperator *op)
 void POSE_OT_rotation_mode_set (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Rotation Mode";
-       ot->idname= "POSE_OT_rotation_mode_set";
-       ot->description= "Set the rotation representation used by selected bones";
+       ot->name = "Set Rotation Mode";
+       ot->idname = "POSE_OT_rotation_mode_set";
+       ot->description = "Set the rotation representation used by selected bones";
        
        /* callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= pose_bone_rotmode_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = pose_bone_rotmode_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", posebone_rotmode_items, 0, "Rotation Mode", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", posebone_rotmode_items, 0, "Rotation Mode", "");
 }
 
 /* ********************************************** */
@@ -1911,16 +1911,16 @@ static int pose_armature_layers_showall_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_layers_show_all (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Show All Layers";
-       ot->idname= "ARMATURE_OT_layers_show_all";
-       ot->description= "Make all armature layers visible";
+       ot->name = "Show All Layers";
+       ot->idname = "ARMATURE_OT_layers_show_all";
+       ot->description = "Make all armature layers visible";
        
        /* callbacks */
-       ot->exec= pose_armature_layers_showall_exec;
-       ot->poll= pose_armature_layers_showall_poll;
+       ot->exec = pose_armature_layers_showall_exec;
+       ot->poll = pose_armature_layers_showall_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        ot->prop = RNA_def_boolean(ot->srna, "all", 1, "All Layers", "Enable all layers or just the first 16 (top row)");
@@ -1977,17 +1977,17 @@ static int pose_armature_layers_exec (bContext *C, wmOperator *op)
 void POSE_OT_armature_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Armature Layers";
-       ot->idname= "POSE_OT_armature_layers";
-       ot->description= "Change the visible armature layers";
+       ot->name = "Change Armature Layers";
+       ot->idname = "POSE_OT_armature_layers";
+       ot->description = "Change the visible armature layers";
        
        /* callbacks */
-       ot->invoke= pose_armature_layers_invoke;
-       ot->exec= pose_armature_layers_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = pose_armature_layers_invoke;
+       ot->exec = pose_armature_layers_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers to make visible");
@@ -1996,17 +1996,17 @@ void POSE_OT_armature_layers (wmOperatorType *ot)
 void ARMATURE_OT_armature_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Armature Layers";
-       ot->idname= "ARMATURE_OT_armature_layers";
-       ot->description= "Change the visible armature layers";
+       ot->name = "Change Armature Layers";
+       ot->idname = "ARMATURE_OT_armature_layers";
+       ot->description = "Change the visible armature layers";
        
        /* callbacks */
-       ot->invoke= pose_armature_layers_invoke;
-       ot->exec= pose_armature_layers_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->invoke = pose_armature_layers_invoke;
+       ot->exec = pose_armature_layers_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers to make visible");
@@ -2071,17 +2071,17 @@ static int pose_bone_layers_exec (bContext *C, wmOperator *op)
 void POSE_OT_bone_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Bone Layers";
-       ot->idname= "POSE_OT_bone_layers";
-       ot->description= "Change the layers that the selected bones belong to";
+       ot->name = "Change Bone Layers";
+       ot->idname = "POSE_OT_bone_layers";
+       ot->description = "Change the layers that the selected bones belong to";
        
        /* callbacks */
-       ot->invoke= pose_bone_layers_invoke;
-       ot->exec= pose_bone_layers_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = pose_bone_layers_invoke;
+       ot->exec = pose_bone_layers_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers that bone belongs to");
@@ -2143,17 +2143,17 @@ static int armature_bone_layers_exec (bContext *C, wmOperator *op)
 void ARMATURE_OT_bone_layers (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Bone Layers";
-       ot->idname= "ARMATURE_OT_bone_layers";
-       ot->description= "Change the layers that the selected bones belong to";
+       ot->name = "Change Bone Layers";
+       ot->idname = "ARMATURE_OT_bone_layers";
+       ot->description = "Change the layers that the selected bones belong to";
        
        /* callbacks */
-       ot->invoke= armature_bone_layers_invoke;
-       ot->exec= armature_bone_layers_exec;
-       ot->poll= ED_operator_editarmature;
+       ot->invoke = armature_bone_layers_invoke;
+       ot->exec = armature_bone_layers_exec;
+       ot->poll = ED_operator_editarmature;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean_layer_member(ot->srna, "layers", 32, NULL, "Layer", "Armature layers that bone belongs to");
@@ -2192,15 +2192,15 @@ void POSE_OT_quaternions_flip (wmOperatorType *ot)
 {
        /* identifiers */
        ot->name = "Flip Quats";
-       ot->idname= "POSE_OT_quaternions_flip";
-       ot->description= "Flip quaternion values to achieve desired rotations, while maintaining the same orientations";
+       ot->idname = "POSE_OT_quaternions_flip";
+       ot->description = "Flip quaternion values to achieve desired rotations, while maintaining the same orientations";
        
        /* callbacks */
-       ot->exec= pose_flip_quats_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_flip_quats_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ********************************************** */
@@ -2268,14 +2268,14 @@ void POSE_OT_user_transforms_clear (wmOperatorType *ot)
 {
        /* identifiers */
        ot->name = "Clear User Transforms";
-       ot->idname= "POSE_OT_user_transforms_clear";
-       ot->description= "Reset pose on selected bones to keyframed state";
+       ot->idname = "POSE_OT_user_transforms_clear";
+       ot->description = "Reset pose on selected bones to keyframed state";
        
        /* callbacks */
-       ot->exec= pose_clear_user_transforms_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_clear_user_transforms_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
index afa68ac5597b50c2ecd926ec64068c0a5e9b7db9..7b85539880211190ff0050bf60f3b07a96d86c8f 100644 (file)
@@ -1400,15 +1400,15 @@ static int separate_exec(bContext *C, wmOperator *op)
 void CURVE_OT_separate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Separate";
-       ot->idname= "CURVE_OT_separate";
+       ot->name = "Separate";
+       ot->idname = "CURVE_OT_separate";
        
        /* api callbacks */
-       ot->exec= separate_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = separate_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* ******************* FLAGS ********************* */
@@ -2008,16 +2008,16 @@ static int switch_direction_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_switch_direction(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Switch Direction";
-       ot->description= "Switch direction of selected splines";
-       ot->idname= "CURVE_OT_switch_direction";
+       ot->name = "Switch Direction";
+       ot->description = "Switch direction of selected splines";
+       ot->idname = "CURVE_OT_switch_direction";
        
        /* api callbacks */
-       ot->exec= switch_direction_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = switch_direction_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /****************** set weight operator *******************/
@@ -2056,17 +2056,17 @@ static int set_goal_weight_exec(bContext *C, wmOperator *op)
 void CURVE_OT_spline_weight_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Goal Weight";
-       ot->description= "Set softbody goal weight for selected points";
-       ot->idname= "CURVE_OT_spline_weight_set";
+       ot->name = "Set Goal Weight";
+       ot->description = "Set softbody goal weight for selected points";
+       ot->idname = "CURVE_OT_spline_weight_set";
        
        /* api callbacks */
-       ot->exec= set_goal_weight_exec;
-       ot->invoke= WM_operator_props_popup;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = set_goal_weight_exec;
+       ot->invoke = WM_operator_props_popup;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_float_factor(ot->srna, "weight", 1.0f, 0.0f, 1.0f, "Weight", "", 0.0f, 1.0f);
@@ -2108,17 +2108,17 @@ static int set_radius_exec(bContext *C, wmOperator *op)
 void CURVE_OT_radius_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Curve Radius";
-       ot->description= "Set per-point radius which is used for bevel tapering";
-       ot->idname= "CURVE_OT_radius_set";
+       ot->name = "Set Curve Radius";
+       ot->description = "Set per-point radius which is used for bevel tapering";
+       ot->idname = "CURVE_OT_radius_set";
        
        /* api callbacks */
-       ot->exec= set_radius_exec;
-       ot->invoke= WM_operator_props_popup;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = set_radius_exec;
+       ot->invoke = WM_operator_props_popup;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_float(ot->srna, "radius", 1.0f, 0.0f, FLT_MAX, "Radius", "", 0.0001f, 10.0f);
@@ -2184,16 +2184,16 @@ static int smooth_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_smooth(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Smooth";
-       ot->description= "Flatten angles of selected points";
-       ot->idname= "CURVE_OT_smooth";
+       ot->name = "Smooth";
+       ot->description = "Flatten angles of selected points";
+       ot->idname = "CURVE_OT_smooth";
        
        /* api callbacks */
-       ot->exec= smooth_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = smooth_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /**************** smooth curve radius operator *************/
@@ -2350,16 +2350,16 @@ static int smooth_radius_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_smooth_radius(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Smooth Curve Radius";
-       ot->description= "Flatten radiuses of selected points";
-       ot->idname= "CURVE_OT_smooth_radius";
+       ot->name = "Smooth Curve Radius";
+       ot->description = "Flatten radiuses of selected points";
+       ot->idname = "CURVE_OT_smooth_radius";
        
        /* api clastbacks */
-       ot->exec= smooth_radius_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = smooth_radius_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /***************** selection utility *************************/
@@ -2502,15 +2502,15 @@ static int de_select_first_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_de_select_first(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select First";
-       ot->idname= "CURVE_OT_de_select_first";
+       ot->name = "(De)select First";
+       ot->idname = "CURVE_OT_de_select_first";
        
        /* api cfirstbacks */
-       ot->exec= de_select_first_exec;
-       ot->poll= ED_operator_editcurve;
+       ot->exec = de_select_first_exec;
+       ot->poll = ED_operator_editcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int de_select_last_exec(bContext *C, wmOperator *UNUSED(op))
@@ -2526,15 +2526,15 @@ static int de_select_last_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_de_select_last(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select Last";
-       ot->idname= "CURVE_OT_de_select_last";
+       ot->name = "(De)select Last";
+       ot->idname = "CURVE_OT_de_select_last";
        
        /* api clastbacks */
-       ot->exec= de_select_last_exec;
-       ot->poll= ED_operator_editcurve;
+       ot->exec = de_select_last_exec;
+       ot->poll = ED_operator_editcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /******************* de select all operator ***************/
@@ -2604,15 +2604,15 @@ static int de_select_all_exec(bContext *C, wmOperator *op)
 void CURVE_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select All";
-       ot->idname= "CURVE_OT_select_all";
+       ot->name = "(De)select All";
+       ot->idname = "CURVE_OT_select_all";
        
        /* api callbacks */
-       ot->exec= de_select_all_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = de_select_all_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        WM_operator_properties_select_all(ot);
@@ -2678,15 +2678,15 @@ static int hide_exec(bContext *C, wmOperator *op)
 void CURVE_OT_hide(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Hide Selected";
-       ot->idname= "CURVE_OT_hide";
+       ot->name = "Hide Selected";
+       ot->idname = "CURVE_OT_hide";
        
        /* api callbacks */
-       ot->exec= hide_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = hide_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected");
@@ -2738,15 +2738,15 @@ static int reveal_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_reveal(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal Hidden";
-       ot->idname= "CURVE_OT_reveal";
+       ot->name = "Reveal Hidden";
+       ot->idname = "CURVE_OT_reveal";
        
        /* api callbacks */
-       ot->exec= reveal_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = reveal_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /********************** subdivide operator *********************/
@@ -3174,16 +3174,16 @@ void CURVE_OT_subdivide(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Subdivide";
-       ot->description= "Subdivide selected segments";
-       ot->idname= "CURVE_OT_subdivide";
+       ot->name = "Subdivide";
+       ot->description = "Subdivide selected segments";
+       ot->idname = "CURVE_OT_subdivide";
        
        /* api callbacks */
-       ot->exec= subdivide_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = subdivide_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, "Number of cuts", "", 1, 10);
        /* avoid re-using last var because it can cause _very_ high poly meshes and annoy users (or worse crash) */
@@ -3502,20 +3502,20 @@ void CURVE_OT_spline_type_set(wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Set Spline Type";
+       ot->name = "Set Spline Type";
        ot->description = "Set type of active spline";
-       ot->idname= "CURVE_OT_spline_type_set";
+       ot->idname = "CURVE_OT_spline_type_set";
        
        /* api callbacks */
-       ot->exec= set_spline_type_exec;
-       ot->invoke= WM_menu_invoke;
-       ot->poll= ED_operator_editcurve;
+       ot->exec = set_spline_type_exec;
+       ot->invoke = WM_menu_invoke;
+       ot->poll = ED_operator_editcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", type_items, CU_POLY, "Type", "Spline type");
+       ot->prop = RNA_def_enum(ot->srna, "type", type_items, CU_POLY, "Type", "Spline type");
 }
 
 /***************** set handle type operator *******************/
@@ -3545,20 +3545,20 @@ void CURVE_OT_handle_type_set(wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Set Handle Type";
+       ot->name = "Set Handle Type";
        ot->description = "Set type of handles for selected control points";
-       ot->idname= "CURVE_OT_handle_type_set";
+       ot->idname = "CURVE_OT_handle_type_set";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= set_handle_type_exec;
-       ot->poll= ED_operator_editcurve;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = set_handle_type_exec;
+       ot->poll = ED_operator_editcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", editcurve_handle_type_items, 1, "Type", "Spline type");
+       ot->prop = RNA_def_enum(ot->srna, "type", editcurve_handle_type_items, 1, "Type", "Spline type");
 }
 
 /***************** make segment operator **********************/
@@ -4080,15 +4080,15 @@ static int make_segment_exec(bContext *C, wmOperator *op)
 void CURVE_OT_make_segment(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Make Segment";
-       ot->idname= "CURVE_OT_make_segment";
+       ot->name = "Make Segment";
+       ot->idname = "CURVE_OT_make_segment";
        
        /* api callbacks */
-       ot->exec= make_segment_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = make_segment_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /***************** pick select from 3d view **********************/
@@ -4310,16 +4310,16 @@ static int spin_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 void CURVE_OT_spin(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Spin";
-       ot->idname= "CURVE_OT_spin";
+       ot->name = "Spin";
+       ot->idname = "CURVE_OT_spin";
        
        /* api callbacks */
-       ot->exec= spin_exec;
+       ot->exec = spin_exec;
        ot->invoke = spin_invoke;
-       ot->poll= ED_operator_editsurf;
+       ot->poll = ED_operator_editsurf;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_float_vector_xyz(ot->srna, "center", 3, NULL, -FLT_MAX, FLT_MAX, "Center", "Center in global view space", -FLT_MAX, FLT_MAX);
        RNA_def_float_vector(ot->srna, "axis", 3, NULL, -1.0f, 1.0f, "Axis", "Axis in global view space", -FLT_MAX, FLT_MAX);
@@ -4619,16 +4619,16 @@ static int add_vertex_invoke(bContext *C, wmOperator *op, wmEvent *event)
 void CURVE_OT_vertex_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Vertex";
-       ot->idname= "CURVE_OT_vertex_add";
+       ot->name = "Add Vertex";
+       ot->idname = "CURVE_OT_vertex_add";
        
        /* api callbacks */
-       ot->exec= add_vertex_exec;
-       ot->invoke= add_vertex_invoke;
-       ot->poll= ED_operator_editcurve;
+       ot->exec = add_vertex_exec;
+       ot->invoke = add_vertex_invoke;
+       ot->poll = ED_operator_editcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_float_vector_xyz(ot->srna, "location", 3, NULL, -FLT_MAX, FLT_MAX, "Location", "Location to add new vertex at", -1e4, 1e4);
@@ -4667,16 +4667,16 @@ static int extrude_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_extrude(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Extrude";
+       ot->name = "Extrude";
        ot->description = "Extrude selected control point(s) and move";
-       ot->idname= "CURVE_OT_extrude";
+       ot->idname = "CURVE_OT_extrude";
        
        /* api callbacks */
-       ot->exec= extrude_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = extrude_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* to give to transform */
        RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
@@ -4795,17 +4795,17 @@ void CURVE_OT_cyclic_toggle(wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Toggle Cyclic";
+       ot->name = "Toggle Cyclic";
        ot->description = "Make active spline closed/opened loop";
-       ot->idname= "CURVE_OT_cyclic_toggle";
+       ot->idname = "CURVE_OT_cyclic_toggle";
        
        /* api callbacks */
-       ot->exec= toggle_cyclic_exec;
-       ot->invoke= toggle_cyclic_invoke;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = toggle_cyclic_exec;
+       ot->invoke = toggle_cyclic_invoke;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "direction", direction_items, 0, "Direction", "Direction to make surface cyclic in");
@@ -4872,16 +4872,16 @@ static int select_linked_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(eve
 void CURVE_OT_select_linked(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Linked All";
-       ot->idname= "CURVE_OT_select_linked";
+       ot->name = "Select Linked All";
+       ot->idname = "CURVE_OT_select_linked";
 
        /* api callbacks */
-       ot->exec= select_linked_exec;
-       ot->invoke= select_linked_invoke;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = select_linked_exec;
+       ot->invoke = select_linked_invoke;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
 }
@@ -4932,15 +4932,15 @@ static int select_linked_pick_invoke(bContext *C, wmOperator *op, wmEvent *event
 void CURVE_OT_select_linked_pick(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Linked";
-       ot->idname= "CURVE_OT_select_linked_pick";
+       ot->name = "Select Linked";
+       ot->idname = "CURVE_OT_select_linked_pick";
 
        /* api callbacks */
-       ot->invoke= select_linked_pick_invoke;
-       ot->poll= ED_operator_editsurfcurve_region_view3d;
+       ot->invoke = select_linked_pick_invoke;
+       ot->poll = ED_operator_editsurfcurve_region_view3d;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "deselect", 0, "Deselect", "Deselect linked control points rather than selecting them");
@@ -5010,15 +5010,15 @@ static int select_row_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_select_row(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Control Point Row";
-       ot->idname= "CURVE_OT_select_row";
+       ot->name = "Select Control Point Row";
+       ot->idname = "CURVE_OT_select_row";
        
        /* api callbacks */
-       ot->exec= select_row_exec;
-       ot->poll= ED_operator_editsurf;
+       ot->exec = select_row_exec;
+       ot->poll = ED_operator_editsurf;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /***************** select next operator **********************/
@@ -5037,15 +5037,15 @@ static int select_next_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_select_next(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Next";
-       ot->idname= "CURVE_OT_select_next";
+       ot->name = "Select Next";
+       ot->idname = "CURVE_OT_select_next";
        
        /* api callbacks */
-       ot->exec= select_next_exec;
-       ot->poll= ED_operator_editcurve;
+       ot->exec = select_next_exec;
+       ot->poll = ED_operator_editcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /***************** select previous operator **********************/
@@ -5064,15 +5064,15 @@ static int select_previous_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_select_previous(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Previous";
-       ot->idname= "CURVE_OT_select_previous";
+       ot->name = "Select Previous";
+       ot->idname = "CURVE_OT_select_previous";
        
        /* api callbacks */
-       ot->exec= select_previous_exec;
-       ot->poll= ED_operator_editcurve;
+       ot->exec = select_previous_exec;
+       ot->poll = ED_operator_editcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /***************** select more operator **********************/
@@ -5151,15 +5151,15 @@ static int select_more_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_select_more(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select More";
-       ot->idname= "CURVE_OT_select_more";
+       ot->name = "Select More";
+       ot->idname = "CURVE_OT_select_more";
        
        /* api callbacks */
-       ot->exec= select_more_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = select_more_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /******************** select less operator *****************/
@@ -5312,15 +5312,15 @@ static int select_less_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_select_less(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Less";
-       ot->idname= "CURVE_OT_select_less";
+       ot->name = "Select Less";
+       ot->idname = "CURVE_OT_select_less";
        
        /* api callbacks */
-       ot->exec= select_less_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = select_less_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /********************** select random *********************/
@@ -5375,15 +5375,15 @@ static int select_random_exec(bContext *C, wmOperator *op)
 void CURVE_OT_select_random(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Random";
-       ot->idname= "CURVE_OT_select_random";
+       ot->name = "Select Random";
+       ot->idname = "CURVE_OT_select_random";
        
        /* api callbacks */
-       ot->exec= select_random_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = select_random_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_float_percentage(ot->srna, "percent", 50.f, 0.0f, 100.0f, "Percent", "Percentage of elements to select randomly", 0.f, 100.0f);
@@ -5508,16 +5508,16 @@ static int select_nth_exec(bContext *C, wmOperator *op)
 void CURVE_OT_select_nth(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Select Nth";
-       ot->description= "";
-       ot->idname= "CURVE_OT_select_nth";
+       ot->name = "Select Nth";
+       ot->description = "";
+       ot->idname = "CURVE_OT_select_nth";
 
        /* api callbacks */
-       ot->exec= select_nth_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = select_nth_exec;
+       ot->poll = ED_operator_editsurfcurve;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        RNA_def_int(ot->srna, "nth", 2, 2, 100, "Nth Selection", "", 1, INT_MAX);
 }
@@ -5537,16 +5537,16 @@ static int duplicate_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_duplicate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Curve";
+       ot->name = "Duplicate Curve";
        ot->description = "Duplicate selected control points and segments between them";
-       ot->idname= "CURVE_OT_duplicate";
+       ot->idname = "CURVE_OT_duplicate";
        
        /* api callbacks */
-       ot->exec= duplicate_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = duplicate_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /********************** delete operator *********************/
@@ -5912,17 +5912,17 @@ void CURVE_OT_delete(wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Delete";
+       ot->name = "Delete";
        ot->description = "Delete selected control points or segments";
-       ot->idname= "CURVE_OT_delete";
+       ot->idname = "CURVE_OT_delete";
        
        /* api callbacks */
-       ot->exec= delete_exec;
-       ot->invoke= delete_invoke;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = delete_exec;
+       ot->invoke = delete_invoke;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "type", type_items, 0, "Type", "Which elements to delete");
@@ -5956,29 +5956,29 @@ static int shade_smooth_exec(bContext *C, wmOperator *op)
 void CURVE_OT_shade_smooth(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Shade Smooth";
-       ot->idname= "CURVE_OT_shade_smooth";
+       ot->name = "Shade Smooth";
+       ot->idname = "CURVE_OT_shade_smooth";
        
        /* api callbacks */
-       ot->exec= shade_smooth_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = shade_smooth_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 void CURVE_OT_shade_flat(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Shade Flat";
-       ot->idname= "CURVE_OT_shade_flat";
+       ot->name = "Shade Flat";
+       ot->idname = "CURVE_OT_shade_flat";
        
        /* api callbacks */
-       ot->exec= shade_smooth_exec;
-       ot->poll= ED_operator_editsurfcurve;
+       ot->exec = shade_smooth_exec;
+       ot->poll = ED_operator_editsurfcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /************** join operator, to be used externally? ****************/
@@ -6554,17 +6554,17 @@ static int add_primitive_bezier_exec(bContext *C, wmOperator *op)
 void CURVE_OT_primitive_bezier_curve_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Bezier";
-       ot->description= "Construct a Bezier Curve";
-       ot->idname= "CURVE_OT_primitive_bezier_curve_add";
+       ot->name = "Add Bezier";
+       ot->description = "Construct a Bezier Curve";
+       ot->idname = "CURVE_OT_primitive_bezier_curve_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_bezier_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_bezier_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6577,17 +6577,17 @@ static int add_primitive_bezier_circle_exec(bContext *C, wmOperator *op)
 void CURVE_OT_primitive_bezier_circle_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Bezier Circle";
-       ot->description= "Construct a Bezier Circle";
-       ot->idname= "CURVE_OT_primitive_bezier_circle_add";
+       ot->name = "Add Bezier Circle";
+       ot->description = "Construct a Bezier Circle";
+       ot->idname = "CURVE_OT_primitive_bezier_circle_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_bezier_circle_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_bezier_circle_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6600,17 +6600,17 @@ static int add_primitive_nurbs_curve_exec(bContext *C, wmOperator *op)
 void CURVE_OT_primitive_nurbs_curve_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Nurbs Curve";
-       ot->description= "Construct a Nurbs Curve";
-       ot->idname= "CURVE_OT_primitive_nurbs_curve_add";
+       ot->name = "Add Nurbs Curve";
+       ot->description = "Construct a Nurbs Curve";
+       ot->idname = "CURVE_OT_primitive_nurbs_curve_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_curve_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_curve_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6623,17 +6623,17 @@ static int add_primitive_nurbs_circle_exec(bContext *C, wmOperator *op)
 void CURVE_OT_primitive_nurbs_circle_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Nurbs Circle";
-       ot->description= "Construct a Nurbs Circle";
-       ot->idname= "CURVE_OT_primitive_nurbs_circle_add";
+       ot->name = "Add Nurbs Circle";
+       ot->description = "Construct a Nurbs Circle";
+       ot->idname = "CURVE_OT_primitive_nurbs_circle_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_circle_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_circle_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6646,17 +6646,17 @@ static int add_primitive_curve_path_exec(bContext *C, wmOperator *op)
 void CURVE_OT_primitive_nurbs_path_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Path";
-       ot->description= "Construct a Path";
-       ot->idname= "CURVE_OT_primitive_nurbs_path_add";
+       ot->name = "Add Path";
+       ot->description = "Construct a Path";
+       ot->idname = "CURVE_OT_primitive_nurbs_path_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_curve_path_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_curve_path_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6670,17 +6670,17 @@ static int add_primitive_nurbs_surface_curve_exec(bContext *C, wmOperator *op)
 void SURFACE_OT_primitive_nurbs_surface_curve_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Surface Curve";
-       ot->description= "Construct a Nurbs surface Curve";
-       ot->idname= "SURFACE_OT_primitive_nurbs_surface_curve_add";
+       ot->name = "Add Surface Curve";
+       ot->description = "Construct a Nurbs surface Curve";
+       ot->idname = "SURFACE_OT_primitive_nurbs_surface_curve_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_surface_curve_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_surface_curve_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6693,17 +6693,17 @@ static int add_primitive_nurbs_surface_circle_exec(bContext *C, wmOperator *op)
 void SURFACE_OT_primitive_nurbs_surface_circle_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Surface Circle";
-       ot->description= "Construct a Nurbs surface Circle";
-       ot->idname= "SURFACE_OT_primitive_nurbs_surface_circle_add";
+       ot->name = "Add Surface Circle";
+       ot->description = "Construct a Nurbs surface Circle";
+       ot->idname = "SURFACE_OT_primitive_nurbs_surface_circle_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_surface_circle_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_surface_circle_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6716,17 +6716,17 @@ static int add_primitive_nurbs_surface_surface_exec(bContext *C, wmOperator *op)
 void SURFACE_OT_primitive_nurbs_surface_surface_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Surface Patch";
-       ot->description= "Construct a Nurbs surface Patch";
-       ot->idname= "SURFACE_OT_primitive_nurbs_surface_surface_add";
+       ot->name = "Add Surface Patch";
+       ot->description = "Construct a Nurbs surface Patch";
+       ot->idname = "SURFACE_OT_primitive_nurbs_surface_surface_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_surface_surface_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_surface_surface_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6739,17 +6739,17 @@ static int add_primitive_nurbs_surface_cylinder_exec(bContext *C, wmOperator *op
 void SURFACE_OT_primitive_nurbs_surface_cylinder_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Surface Cylinder";
-       ot->description= "Construct a Nurbs surface Cylinder";
-       ot->idname= "SURFACE_OT_primitive_nurbs_surface_cylinder_add";
+       ot->name = "Add Surface Cylinder";
+       ot->description = "Construct a Nurbs surface Cylinder";
+       ot->idname = "SURFACE_OT_primitive_nurbs_surface_cylinder_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_surface_cylinder_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_surface_cylinder_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6762,17 +6762,17 @@ static int add_primitive_nurbs_surface_sphere_exec(bContext *C, wmOperator *op)
 void SURFACE_OT_primitive_nurbs_surface_sphere_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Surface Sphere";
-       ot->description= "Construct a Nurbs surface Sphere";
-       ot->idname= "SURFACE_OT_primitive_nurbs_surface_sphere_add";
+       ot->name = "Add Surface Sphere";
+       ot->description = "Construct a Nurbs surface Sphere";
+       ot->idname = "SURFACE_OT_primitive_nurbs_surface_sphere_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_surface_sphere_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_surface_sphere_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6785,17 +6785,17 @@ static int add_primitive_nurbs_surface_torus_exec(bContext *C, wmOperator *op)
 void SURFACE_OT_primitive_nurbs_surface_torus_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Surface Torus";
-       ot->description= "Construct a Nurbs surface Torus";
-       ot->idname= "SURFACE_OT_primitive_nurbs_surface_torus_add";
+       ot->name = "Add Surface Torus";
+       ot->description = "Construct a Nurbs surface Torus";
+       ot->idname = "SURFACE_OT_primitive_nurbs_surface_torus_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_nurbs_surface_torus_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_nurbs_surface_torus_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -6840,15 +6840,15 @@ static int clear_tilt_exec(bContext *C, wmOperator *UNUSED(op))
 void CURVE_OT_tilt_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Tilt";
-       ot->idname= "CURVE_OT_tilt_clear";
+       ot->name = "Clear Tilt";
+       ot->idname = "CURVE_OT_tilt_clear";
        
        /* api callbacks */
-       ot->exec= clear_tilt_exec;
-       ot->poll= ED_operator_editcurve;
+       ot->exec = clear_tilt_exec;
+       ot->poll = ED_operator_editcurve;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /****************** undo for curves ****************/
index 4170b7e3299267f23f757d944a3808aede7c54a2..7f31b34b367715c1d4df46d884048d587944ce2d 100644 (file)
@@ -321,16 +321,16 @@ static int insert_lorem_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_insert_lorem(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Insert Lorem";
-       ot->description= "Insert placeholder text";
-       ot->idname= "FONT_OT_insert_lorem";
+       ot->name = "Insert Lorem";
+       ot->description = "Insert placeholder text";
+       ot->idname = "FONT_OT_insert_lorem";
        
        /* api callbacks */
-       ot->exec= insert_lorem_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = insert_lorem_exec;
+       ot->poll = ED_operator_editfont;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /******************* paste file operator ********************/
@@ -409,17 +409,17 @@ static int paste_file_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event)
 void FONT_OT_file_paste(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Paste File";
-       ot->description= "Paste contents from file";
-       ot->idname= "FONT_OT_file_paste";
+       ot->name = "Paste File";
+       ot->description = "Paste contents from file";
+       ot->idname = "FONT_OT_file_paste";
        
        /* api callbacks */
-       ot->exec= paste_file_exec;
-       ot->invoke= paste_file_invoke;
-       ot->poll= ED_operator_editfont;
+       ot->exec = paste_file_exec;
+       ot->invoke = paste_file_invoke;
+       ot->poll = ED_operator_editfont;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        WM_operator_properties_filesel(ot, FOLDERFILE|TEXTFILE, FILE_SPECIAL, FILE_OPENFILE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
@@ -611,16 +611,16 @@ static int set_style_exec(bContext *C, wmOperator *op)
 void FONT_OT_style_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Style";
-       ot->description= "Set font style";
-       ot->idname= "FONT_OT_style_set";
+       ot->name = "Set Style";
+       ot->description = "Set font style";
+       ot->idname = "FONT_OT_style_set";
        
        /* api callbacks */
-       ot->exec= set_style_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = set_style_exec;
+       ot->poll = ED_operator_editfont;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "style", style_items, CU_CHINFO_BOLD, "Style", "Style to set selection to");
@@ -649,16 +649,16 @@ static int toggle_style_exec(bContext *C, wmOperator *op)
 void FONT_OT_style_toggle(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Style";
-       ot->description= "Toggle font style";
-       ot->idname= "FONT_OT_style_toggle";
+       ot->name = "Toggle Style";
+       ot->description = "Toggle font style";
+       ot->idname = "FONT_OT_style_toggle";
        
        /* api callbacks */
-       ot->exec= toggle_style_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = toggle_style_exec;
+       ot->poll = ED_operator_editfont;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "style", style_items, CU_CHINFO_BOLD, "Style", "Style to set selection to");
@@ -692,13 +692,13 @@ static int copy_text_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_text_copy(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Copy Text";
-       ot->description= "Copy selected text to clipboard";
-       ot->idname= "FONT_OT_text_copy";
+       ot->name = "Copy Text";
+       ot->description = "Copy selected text to clipboard";
+       ot->idname = "FONT_OT_text_copy";
        
        /* api callbacks */
-       ot->exec= copy_text_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = copy_text_exec;
+       ot->poll = ED_operator_editfont;
 }
 
 /******************* cut text operator ********************/
@@ -723,16 +723,16 @@ static int cut_text_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_text_cut(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Cut Text";
-       ot->description= "Cut selected text to clipboard";
-       ot->idname= "FONT_OT_text_cut";
+       ot->name = "Cut Text";
+       ot->description = "Cut selected text to clipboard";
+       ot->idname = "FONT_OT_text_cut";
        
        /* api callbacks */
-       ot->exec= cut_text_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = cut_text_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /******************* paste text operator ********************/
@@ -781,16 +781,16 @@ static int paste_text_exec(bContext *C, wmOperator *op)
 void FONT_OT_text_paste(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Paste Text";
-       ot->description= "Paste text from clipboard";
-       ot->idname= "FONT_OT_text_paste";
+       ot->name = "Paste Text";
+       ot->description = "Paste text from clipboard";
+       ot->idname = "FONT_OT_text_paste";
        
        /* api callbacks */
-       ot->exec= paste_text_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = paste_text_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /************************ move operator ************************/
@@ -918,16 +918,16 @@ static int move_exec(bContext *C, wmOperator *op)
 void FONT_OT_move(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Cursor";
-       ot->description= "Move cursor to position type";
-       ot->idname= "FONT_OT_move";
+       ot->name = "Move Cursor";
+       ot->description = "Move cursor to position type";
+       ot->idname = "FONT_OT_move";
        
        /* api callbacks */
-       ot->exec= move_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = move_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to");
@@ -945,16 +945,16 @@ static int move_select_exec(bContext *C, wmOperator *op)
 void FONT_OT_move_select(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Select";
-       ot->description= "Make selection from current cursor position to new cursor position type";
-       ot->idname= "FONT_OT_move_select";
+       ot->name = "Move Select";
+       ot->description = "Make selection from current cursor position to new cursor position type";
+       ot->idname = "FONT_OT_move_select";
        
        /* api callbacks */
-       ot->exec= move_select_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = move_select_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "type", move_type_items, LINE_BEGIN, "Type", "Where to move cursor to, to make a selection");
@@ -987,16 +987,16 @@ static int change_spacing_exec(bContext *C, wmOperator *op)
 void FONT_OT_change_spacing(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Spacing";
-       ot->description= "Change font spacing";
-       ot->idname= "FONT_OT_change_spacing";
+       ot->name = "Change Spacing";
+       ot->description = "Change font spacing";
+       ot->idname = "FONT_OT_change_spacing";
        
        /* api callbacks */
-       ot->exec= change_spacing_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = change_spacing_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_int(ot->srna, "delta", 1, -20, 20, "Delta", "Amount to decrease or increase character spacing with", -20, 20);
@@ -1032,16 +1032,16 @@ static int change_character_exec(bContext *C, wmOperator *op)
 void FONT_OT_change_character(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Change Character";
-       ot->description= "Change font character code";
-       ot->idname= "FONT_OT_change_character";
+       ot->name = "Change Character";
+       ot->description = "Change font character code";
+       ot->idname = "FONT_OT_change_character";
        
        /* api callbacks */
-       ot->exec= change_character_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = change_character_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_int(ot->srna, "delta", 1, -255, 255, "Delta", "Number to increase or decrease character code with", -255, 255);
@@ -1075,16 +1075,16 @@ static int line_break_exec(bContext *C, wmOperator *op)
 void FONT_OT_line_break(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Line Break";
-       ot->description= "Insert line break at cursor position";
-       ot->idname= "FONT_OT_line_break";
+       ot->name = "Line Break";
+       ot->description = "Insert line break at cursor position";
+       ot->idname = "FONT_OT_line_break";
        
        /* api callbacks */
-       ot->exec= line_break_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = line_break_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "ctrl", 0, "Ctrl", ""); // XXX what is this?
@@ -1165,16 +1165,16 @@ static int delete_exec(bContext *C, wmOperator *op)
 void FONT_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete";
-       ot->description= "Delete text by cursor position";
-       ot->idname= "FONT_OT_delete";
+       ot->name = "Delete";
+       ot->description = "Delete text by cursor position";
+       ot->idname = "FONT_OT_delete";
        
        /* api callbacks */
-       ot->exec= delete_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = delete_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "type", delete_type_items, DEL_ALL, "Type", "Which part of the text to delete");
@@ -1326,17 +1326,17 @@ static int insert_text_invoke(bContext *C, wmOperator *op, wmEvent *evt)
 void FONT_OT_text_insert(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Insert Text";
-       ot->description= "Insert text at cursor position";
-       ot->idname= "FONT_OT_text_insert";
+       ot->name = "Insert Text";
+       ot->description = "Insert text at cursor position";
+       ot->idname = "FONT_OT_text_insert";
        
        /* api callbacks */
-       ot->exec= insert_text_exec;
-       ot->invoke= insert_text_invoke;
-       ot->poll= ED_operator_editfont;
+       ot->exec = insert_text_exec;
+       ot->invoke = insert_text_invoke;
+       ot->poll = ED_operator_editfont;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position");
@@ -1365,16 +1365,16 @@ static int textbox_add_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_textbox_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Textbox";
-       ot->description= "Add a new text box";
-       ot->idname= "FONT_OT_textbox_add";
+       ot->name = "Add Textbox";
+       ot->description = "Add a new text box";
+       ot->idname = "FONT_OT_textbox_add";
        
        /* api callbacks */
-       ot->exec= textbox_add_exec;
-       ot->poll= ED_operator_object_active_editable_font;
+       ot->exec = textbox_add_exec;
+       ot->poll = ED_operator_object_active_editable_font;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        
 }
@@ -1408,16 +1408,16 @@ static int textbox_remove_exec(bContext *C, wmOperator *op)
 void FONT_OT_textbox_remove(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Textbox";
-       ot->description= "Remove the textbox";
-       ot->idname= "FONT_OT_textbox_remove";
+       ot->name = "Remove Textbox";
+       ot->description = "Remove the textbox";
+       ot->idname = "FONT_OT_textbox_remove";
        
        /* api callbacks */
-       ot->exec= textbox_remove_exec;
-       ot->poll= ED_operator_object_active_editable_font;
+       ot->exec = textbox_remove_exec;
+       ot->poll = ED_operator_object_active_editable_font;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_int(ot->srna, "index", 0, 0, INT_MAX, "Index", "The current text box", 0, INT_MAX);
 }
@@ -1544,16 +1544,16 @@ static int set_case_exec(bContext *C, wmOperator *op)
 void FONT_OT_case_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Case";
-       ot->description= "Set font case";
-       ot->idname= "FONT_OT_case_set";
+       ot->name = "Set Case";
+       ot->description = "Set font case";
+       ot->idname = "FONT_OT_case_set";
        
        /* api callbacks */
-       ot->exec= set_case_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = set_case_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_enum(ot->srna, "case", case_items, CASE_LOWER, "Case", "Lower or upper case");
@@ -1587,16 +1587,16 @@ static int toggle_case_exec(bContext *C, wmOperator *UNUSED(op))
 void FONT_OT_case_toggle(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Toggle Case";
-       ot->description= "Toggle font case";
-       ot->idname= "FONT_OT_case_toggle";
+       ot->name = "Toggle Case";
+       ot->description = "Toggle font case";
+       ot->idname = "FONT_OT_case_toggle";
        
        /* api callbacks */
-       ot->exec= toggle_case_exec;
-       ot->poll= ED_operator_editfont;
+       ot->exec = toggle_case_exec;
+       ot->poll = ED_operator_editfont;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* **************** Open Font ************** */
@@ -1685,16 +1685,16 @@ static int open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
 void FONT_OT_open(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Open Font";
-       ot->idname= "FONT_OT_open";
+       ot->name = "Open Font";
+       ot->idname = "FONT_OT_open";
        
        /* api callbacks */
-       ot->exec= font_open_exec;
-       ot->invoke= open_invoke;
-       ot->cancel= font_open_cancel;
+       ot->exec = font_open_exec;
+       ot->invoke = open_invoke;
+       ot->cancel = font_open_cancel;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        WM_operator_properties_filesel(ot, FOLDERFILE|FTFONTFILE, FILE_SPECIAL, FILE_OPENFILE, WM_FILESEL_FILEPATH|WM_FILESEL_RELPATH, FILE_DEFAULTDISPLAY);
@@ -1728,12 +1728,12 @@ static int font_unlink_exec(bContext *C, wmOperator *op)
 void FONT_OT_unlink(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Unlink";
-       ot->idname= "FONT_OT_unlink";
-       ot->description= "Unlink active font data block";
+       ot->name = "Unlink";
+       ot->idname = "FONT_OT_unlink";
+       ot->description = "Unlink active font data block";
        
        /* api callbacks */
-       ot->exec= font_unlink_exec;
+       ot->exec = font_unlink_exec;
 }
 
 
index 9a492153b7f30b2e7992f13bc558f1fcbee3be56..34eaaf2a31b468b53bd66e3b758185e2d0ccea80 100644 (file)
@@ -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", "");
 }
 
 /* ************************************************ */
index 535a0f947f12d12ca73d1a987f456bd0b1e39477..b7ebc6d0a35181e48537a61d33697d0558d181f9 100644 (file)
@@ -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");
index 80c77a54a84005370f80cf28265432814ecdecdf..e389612507d60e22cbea12af657e59614b8a35c1 100644 (file)
@@ -189,19 +189,19 @@ static int eyedropper_poll(bContext *C)
 static void UI_OT_eyedropper(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Eyedropper";
-       ot->idname= "UI_OT_eyedropper";
-       ot->description= "Sample a color from the Blender Window to store in a property";
+       ot->name = "Eyedropper";
+       ot->idname = "UI_OT_eyedropper";
+       ot->description = "Sample a color from the Blender Window to store in a property";
        
        /* api callbacks */
-       ot->invoke= eyedropper_invoke;
-       ot->modal= eyedropper_modal;
-       ot->cancel= eyedropper_cancel;
-       ot->exec= eyedropper_exec;
-       ot->poll= eyedropper_poll;
+       ot->invoke = eyedropper_invoke;
+       ot->modal = eyedropper_modal;
+       ot->cancel = eyedropper_cancel;
+       ot->exec = eyedropper_exec;
+       ot->poll = eyedropper_poll;
        
        /* flags */
-       ot->flag= OPTYPE_BLOCKING;
+       ot->flag = OPTYPE_BLOCKING;
        
        /* properties */
 }
@@ -219,15 +219,15 @@ static int reset_default_theme_exec(bContext *C, wmOperator *UNUSED(op))
 static void UI_OT_reset_default_theme(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reset to Default Theme";
-       ot->idname= "UI_OT_reset_default_theme";
-       ot->description= "Reset to the default theme colors";
+       ot->name = "Reset to Default Theme";
+       ot->idname = "UI_OT_reset_default_theme";
+       ot->description = "Reset to the default theme colors";
        
        /* callbacks */
-       ot->exec= reset_default_theme_exec;
+       ot->exec = reset_default_theme_exec;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER;
+       ot->flag = OPTYPE_REGISTER;
 }
 
 /* Copy Data Path Operator ------------------------ */
@@ -259,16 +259,16 @@ static int copy_data_path_button_exec(bContext *C, wmOperator *UNUSED(op))
 static void UI_OT_copy_data_path_button(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Copy Data Path";
-       ot->idname= "UI_OT_copy_data_path_button";
-       ot->description= "Copy the RNA data path for this property to the clipboard";
+       ot->name = "Copy Data Path";
+       ot->idname = "UI_OT_copy_data_path_button";
+       ot->description = "Copy the RNA data path for this property to the clipboard";
 
        /* callbacks */
-       ot->exec= copy_data_path_button_exec;
+       ot->exec = copy_data_path_button_exec;
        //op->poll= ??? // TODO: need to have some valid property before this can be done
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER;
+       ot->flag = OPTYPE_REGISTER;
 }
 
 /* Reset to Default Values Button Operator ------------------------ */
@@ -327,16 +327,16 @@ static int reset_default_button_exec(bContext *C, wmOperator *op)
 static void UI_OT_reset_default_button(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reset to Default Value";
-       ot->idname= "UI_OT_reset_default_button";
-       ot->description= "Reset this property's value to its default value";
+       ot->name = "Reset to Default Value";
+       ot->idname = "UI_OT_reset_default_button";
+       ot->description = "Reset this property's value to its default value";
 
        /* callbacks */
-       ot->poll= reset_default_button_poll;
-       ot->exec= reset_default_button_exec;
+       ot->poll = reset_default_button_poll;
+       ot->exec = reset_default_button_exec;
 
        /* flags */
-       ot->flag= OPTYPE_UNDO;
+       ot->flag = OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean(ot->srna, "all", 1, "All", "Reset to default values all elements of the array");
@@ -419,16 +419,16 @@ static int copy_to_selected_button_exec(bContext *C, wmOperator *op)
 static void UI_OT_copy_to_selected_button(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Copy To Selected";
-       ot->idname= "UI_OT_copy_to_selected_button";
-       ot->description= "Copy property from this object to selected objects or bones";
+       ot->name = "Copy To Selected";
+       ot->idname = "UI_OT_copy_to_selected_button";
+       ot->description = "Copy property from this object to selected objects or bones";
 
        /* callbacks */
-       ot->poll= copy_to_selected_button_poll;
-       ot->exec= copy_to_selected_button_exec;
+       ot->poll = copy_to_selected_button_poll;
+       ot->exec = copy_to_selected_button_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        RNA_def_boolean(ot->srna, "all", 1, "All", "Reset to default values all elements of the array");
@@ -474,13 +474,13 @@ static int reports_to_text_exec(bContext *C, wmOperator *UNUSED(op))
 static void UI_OT_reports_to_textblock(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reports to Text Block";
-       ot->idname= "UI_OT_reports_to_textblock";
-       ot->description= "Write the reports ";
+       ot->name = "Reports to Text Block";
+       ot->idname = "UI_OT_reports_to_textblock";
+       ot->description = "Write the reports ";
        
        /* callbacks */
-       ot->poll= reports_to_text_poll;
-       ot->exec= reports_to_text_exec;
+       ot->poll = reports_to_text_poll;
+       ot->exec = reports_to_text_exec;
 }
 
 #ifdef WITH_PYTHON
@@ -693,12 +693,12 @@ static int editsource_exec(bContext *C, wmOperator *op)
 static void UI_OT_editsource(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reports to Text Block";
-       ot->idname= "UI_OT_editsource";
-       ot->description= "Edit source code for a button";
+       ot->name = "Reports to Text Block";
+       ot->idname = "UI_OT_editsource";
+       ot->description = "Edit source code for a button";
 
        /* callbacks */
-       ot->exec= editsource_exec;
+       ot->exec = editsource_exec;
 }
 
 #endif /* WITH_PYTHON */
index e4726bf0ae401302589844bd077e78f67209c8a4..16613d3acee7c0a48a9bf327c91d9a3ba1d4316b 100644 (file)
@@ -291,18 +291,18 @@ static int view_pan_cancel(bContext *UNUSED(C), wmOperator *op)
 static void VIEW2D_OT_pan(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Pan View";
-       ot->description= "Pan the view";
-       ot->idname= "VIEW2D_OT_pan";
+       ot->name = "Pan View";
+       ot->description = "Pan the view";
+       ot->idname = "VIEW2D_OT_pan";
        
        /* api callbacks */
-       ot->exec= view_pan_exec;
-       ot->invoke= view_pan_invoke;
-       ot->modal= view_pan_modal;
-       ot->cancel= view_pan_cancel;
+       ot->exec = view_pan_exec;
+       ot->invoke = view_pan_invoke;
+       ot->modal = view_pan_modal;
+       ot->cancel = view_pan_cancel;
        
        /* operator is modal */
-       ot->flag= OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER;
+       ot->flag = OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_int(ot->srna, "deltax", 0, INT_MIN, INT_MAX, "Delta X", "", INT_MIN, INT_MAX);
@@ -341,12 +341,12 @@ static int view_scrollright_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_scroll_right(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroll Right";
-       ot->description= "Scroll the view right";
-       ot->idname= "VIEW2D_OT_scroll_right";
+       ot->name = "Scroll Right";
+       ot->description = "Scroll the view right";
+       ot->idname = "VIEW2D_OT_scroll_right";
        
        /* api callbacks */
-       ot->exec= view_scrollright_exec;
+       ot->exec = view_scrollright_exec;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_int(ot->srna, "deltax", 0, INT_MIN, INT_MAX, "Delta X", "", INT_MIN, INT_MAX);
@@ -385,12 +385,12 @@ static int view_scrollleft_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_scroll_left(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroll Left";
-       ot->description= "Scroll the view left";
-       ot->idname= "VIEW2D_OT_scroll_left";
+       ot->name = "Scroll Left";
+       ot->description = "Scroll the view left";
+       ot->idname = "VIEW2D_OT_scroll_left";
        
        /* api callbacks */
-       ot->exec= view_scrollleft_exec;
+       ot->exec = view_scrollleft_exec;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_int(ot->srna, "deltax", 0, INT_MIN, INT_MAX, "Delta X", "", INT_MIN, INT_MAX);
@@ -433,12 +433,12 @@ static int view_scrolldown_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_scroll_down(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroll Down";
-       ot->description= "Scroll the view down";
-       ot->idname= "VIEW2D_OT_scroll_down";
+       ot->name = "Scroll Down";
+       ot->description = "Scroll the view down";
+       ot->idname = "VIEW2D_OT_scroll_down";
        
        /* api callbacks */
-       ot->exec= view_scrolldown_exec;
+       ot->exec = view_scrolldown_exec;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_int(ot->srna, "deltax", 0, INT_MIN, INT_MAX, "Delta X", "", INT_MIN, INT_MAX);
@@ -483,12 +483,12 @@ static int view_scrollup_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_scroll_up(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroll Up";
-       ot->description= "Scroll the view up";
-       ot->idname= "VIEW2D_OT_scroll_up";
+       ot->name = "Scroll Up";
+       ot->description = "Scroll the view up";
+       ot->idname = "VIEW2D_OT_scroll_up";
        
        /* api callbacks */
-       ot->exec= view_scrollup_exec;
+       ot->exec = view_scrollup_exec;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_int(ot->srna, "deltax", 0, INT_MIN, INT_MAX, "Delta X", "", INT_MIN, INT_MAX);
@@ -711,14 +711,14 @@ static int view_zoomin_invoke(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_zoom_in(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom In";
-       ot->description= "Zoom in the view";
-       ot->idname= "VIEW2D_OT_zoom_in";
+       ot->name = "Zoom In";
+       ot->description = "Zoom in the view";
+       ot->idname = "VIEW2D_OT_zoom_in";
        
        /* api callbacks */
-       ot->invoke= view_zoomin_invoke;
-//     ot->exec= view_zoomin_exec;  // XXX, needs view_zoomdrag_init called first.
-       ot->poll= view_zoom_poll;
+       ot->invoke = view_zoomin_invoke;
+//     ot->exec = view_zoomin_exec;  // XXX, needs view_zoomdrag_init called first.
+       ot->poll = view_zoom_poll;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_float(ot->srna, "zoomfacx", 0, -FLT_MAX, FLT_MAX, "Zoom Factor X", "", -FLT_MAX, FLT_MAX);
@@ -768,14 +768,14 @@ static int view_zoomout_invoke(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_zoom_out(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom Out";
-       ot->description= "Zoom out the view";
-       ot->idname= "VIEW2D_OT_zoom_out";
+       ot->name = "Zoom Out";
+       ot->description = "Zoom out the view";
+       ot->idname = "VIEW2D_OT_zoom_out";
        
        /* api callbacks */
-       ot->invoke= view_zoomout_invoke;
-//     ot->exec= view_zoomout_exec; // XXX, needs view_zoomdrag_init called first.
-       ot->poll= view_zoom_poll;
+       ot->invoke = view_zoomout_invoke;
+//     ot->exec = view_zoomout_exec; // XXX, needs view_zoomdrag_init called first.
+       ot->poll = view_zoom_poll;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_float(ot->srna, "zoomfacx", 0, -FLT_MAX, FLT_MAX, "Zoom Factor X", "", -FLT_MAX, FLT_MAX);
@@ -1063,20 +1063,20 @@ static int view_zoomdrag_modal(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_zoom(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom 2D View";
-       ot->description= "Zoom in/out the view";
-       ot->idname= "VIEW2D_OT_zoom";
+       ot->name = "Zoom 2D View";
+       ot->description = "Zoom in/out the view";
+       ot->idname = "VIEW2D_OT_zoom";
        
        /* api callbacks */
-       ot->exec= view_zoomdrag_exec;
-       ot->invoke= view_zoomdrag_invoke;
-       ot->modal= view_zoomdrag_modal;
-       ot->cancel= view_zoomdrag_cancel;
+       ot->exec = view_zoomdrag_exec;
+       ot->invoke = view_zoomdrag_invoke;
+       ot->modal = view_zoomdrag_modal;
+       ot->cancel = view_zoomdrag_cancel;
        
-       ot->poll= view_zoom_poll;
+       ot->poll = view_zoom_poll;
        
        /* operator is repeatable */
-       // ot->flag= OPTYPE_BLOCKING;
+       // ot->flag = OPTYPE_BLOCKING;
        
        /* rna - must keep these in sync with the other operators */
        RNA_def_float(ot->srna, "deltax", 0, -FLT_MAX, FLT_MAX, "Delta X", "", -FLT_MAX, FLT_MAX);
@@ -1164,17 +1164,17 @@ static int view_borderzoom_exec(bContext *C, wmOperator *op)
 static void VIEW2D_OT_zoom_border(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Zoom to Border";
-       ot->description= "Zoom in the view to the nearest item contained in the border";
-       ot->idname= "VIEW2D_OT_zoom_border";
+       ot->name = "Zoom to Border";
+       ot->description = "Zoom in the view to the nearest item contained in the border";
+       ot->idname = "VIEW2D_OT_zoom_border";
        
        /* api callbacks */
-       ot->invoke= WM_border_select_invoke;
-       ot->exec= view_borderzoom_exec;
-       ot->modal= WM_border_select_modal;
-       ot->cancel= WM_border_select_cancel;
+       ot->invoke = WM_border_select_invoke;
+       ot->exec = view_borderzoom_exec;
+       ot->modal = WM_border_select_modal;
+       ot->cancel = WM_border_select_cancel;
        
-       ot->poll= view_zoom_poll;
+       ot->poll = view_zoom_poll;
        
        /* rna */
        RNA_def_int(ot->srna, "gesture_mode", 0, INT_MIN, INT_MAX, "Gesture Mode", "", INT_MIN, INT_MAX);
@@ -1587,19 +1587,19 @@ static int scroller_activate_invoke(bContext *C, wmOperator *op, wmEvent *event)
 static void VIEW2D_OT_scroller_activate(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Scroller Activate";
-       ot->description= "Scroll view by mouse click and drag";
-       ot->idname= "VIEW2D_OT_scroller_activate";
+       ot->name = "Scroller Activate";
+       ot->description = "Scroll view by mouse click and drag";
+       ot->idname = "VIEW2D_OT_scroller_activate";
 
        /* flags */
-       ot->flag= OPTYPE_BLOCKING;
+       ot->flag = OPTYPE_BLOCKING;
        
        /* api callbacks */
-       ot->invoke= scroller_activate_invoke;
-       ot->modal= scroller_activate_modal;
-       ot->cancel= scroller_activate_cancel;
+       ot->invoke = scroller_activate_invoke;
+       ot->modal = scroller_activate_modal;
+       ot->cancel = scroller_activate_cancel;
 
-       ot->poll= view2d_poll;
+       ot->poll = view2d_poll;
 }
 
 /* ********************************************************* */
@@ -1655,13 +1655,13 @@ static int reset_exec(bContext *C, wmOperator *UNUSED(op))
 static void VIEW2D_OT_reset(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reset View";
-       ot->description= "Reset the view";
-       ot->idname= "VIEW2D_OT_reset";
+       ot->name = "Reset View";
+       ot->description = "Reset the view";
+       ot->idname = "VIEW2D_OT_reset";
        
        /* api callbacks */
-       ot->exec= reset_exec;
-       ot->poll= view2d_poll;
+       ot->exec = reset_exec;
+       ot->poll = view2d_poll;
 }
  
 /* ********************************************************* */
index 1794e5d6e2195d4f8957aa2d462293c583e1f66e..b7700623d80312fe4538d05b79c3e5ec0d3f8669 100644 (file)
@@ -158,17 +158,17 @@ static int add_primitive_plane_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_plane_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Plane";
-       ot->description= "Construct a filled planar mesh with 4 vertices";
-       ot->idname= "MESH_OT_primitive_plane_add";
+       ot->name = "Add Plane";
+       ot->description = "Construct a filled planar mesh with 4 vertices";
+       ot->idname = "MESH_OT_primitive_plane_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_plane_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_plane_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -203,17 +203,17 @@ static int add_primitive_cube_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_cube_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Cube";
-       ot->description= "Construct a cube mesh";
-       ot->idname= "MESH_OT_primitive_cube_add";
+       ot->name = "Add Cube";
+       ot->description = "Construct a cube mesh";
+       ot->idname = "MESH_OT_primitive_cube_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_cube_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_cube_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -262,17 +262,17 @@ void MESH_OT_primitive_circle_add(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Add Circle";
-       ot->description= "Construct a circle mesh";
-       ot->idname= "MESH_OT_primitive_circle_add";
+       ot->name = "Add Circle";
+       ot->description = "Construct a circle mesh";
+       ot->idname = "MESH_OT_primitive_circle_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_circle_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_circle_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_int(ot->srna, "vertices", 32, 3, INT_MAX, "Vertices", "", 3, 500);
@@ -325,17 +325,17 @@ void MESH_OT_primitive_cylinder_add(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Add Cylinder";
-       ot->description= "Construct a cylinder mesh";
-       ot->idname= "MESH_OT_primitive_cylinder_add";
+       ot->name = "Add Cylinder";
+       ot->description = "Construct a cylinder mesh";
+       ot->idname = "MESH_OT_primitive_cylinder_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_cylinder_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_cylinder_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_int(ot->srna, "vertices", 32, 2, INT_MAX, "Vertices", "", 2, 500);
@@ -387,17 +387,17 @@ void MESH_OT_primitive_cone_add(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Add Cone";
-       ot->description= "Construct a conic mesh";
-       ot->idname= "MESH_OT_primitive_cone_add";
+       ot->name = "Add Cone";
+       ot->description = "Construct a conic mesh";
+       ot->idname = "MESH_OT_primitive_cone_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_cone_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_cone_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_int(ot->srna, "vertices", 32, 2, INT_MAX, "Vertices", "", 2, 500);
@@ -447,17 +447,17 @@ void MESH_OT_primitive_grid_add(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Add Grid";
-       ot->description= "Construct a grid mesh";
-       ot->idname= "MESH_OT_primitive_grid_add";
+       ot->name = "Add Grid";
+       ot->description = "Construct a grid mesh";
+       ot->idname = "MESH_OT_primitive_grid_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_grid_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_grid_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_int(ot->srna, "x_subdivisions", 10, 3, INT_MAX, "X Subdivisions", "", 3, 1000);
@@ -499,17 +499,17 @@ static int add_primitive_monkey_exec(bContext *C, wmOperator *op)
 void MESH_OT_primitive_monkey_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Monkey";
-       ot->description= "Construct a Suzanne mesh";
-       ot->idname= "MESH_OT_primitive_monkey_add";
+       ot->name = "Add Monkey";
+       ot->description = "Construct a Suzanne mesh";
+       ot->idname = "MESH_OT_primitive_monkey_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_monkey_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_monkey_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -549,17 +549,17 @@ void MESH_OT_primitive_uv_sphere_add(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Add UV Sphere";
-       ot->description= "Construct a UV sphere mesh";
-       ot->idname= "MESH_OT_primitive_uv_sphere_add";
+       ot->name = "Add UV Sphere";
+       ot->description = "Construct a UV sphere mesh";
+       ot->idname = "MESH_OT_primitive_uv_sphere_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_uvsphere_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_uvsphere_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_int(ot->srna, "segments", 32, 3, INT_MAX, "Segments", "", 3, 500);
@@ -606,17 +606,17 @@ void MESH_OT_primitive_ico_sphere_add(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Add Ico Sphere";
-       ot->description= "Construct an Icosphere mesh";
-       ot->idname= "MESH_OT_primitive_ico_sphere_add";
+       ot->name = "Add Ico Sphere";
+       ot->description = "Construct an Icosphere mesh";
+       ot->idname = "MESH_OT_primitive_ico_sphere_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= add_primitive_icosphere_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = add_primitive_icosphere_exec;
+       ot->poll = ED_operator_scene_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_int(ot->srna, "subdivisions", 2, 1, INT_MAX, "Subdivisions", "", 1, 8);
index 6b2a8bad6c165068feb9915f70cd756ffbd20ef9..e9b0e276bd069c5f6bb053751f14feed39966566 100644 (file)
@@ -546,16 +546,16 @@ static int loopcut_modal (bContext *C, wmOperator *op, wmEvent *event)
 void MESH_OT_edgering_select (wmOperatorType *ot)
 {
        /* description */
-       ot->name= "Edge Ring Select";
-       ot->idname= "MESH_OT_edgering_select";
-       ot->description= "Select an edge ring";
+       ot->name = "Edge Ring Select";
+       ot->idname = "MESH_OT_edgering_select";
+       ot->description = "Select an edge ring";
        
        /* callbacks */
-       ot->invoke= ringsel_invoke;
-       ot->poll= ED_operator_editmesh_region_view3d; 
+       ot->invoke = ringsel_invoke;
+       ot->poll = ED_operator_editmesh_region_view3d; 
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        RNA_def_boolean(ot->srna, "extend", 0, "Extend", "Extend the selection");
 }
@@ -567,18 +567,18 @@ void MESH_OT_loopcut (wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* description */
-       ot->name= "Loop Cut";
-       ot->idname= "MESH_OT_loopcut";
-       ot->description= "Add a new loop between existing loops";
+       ot->name = "Loop Cut";
+       ot->idname = "MESH_OT_loopcut";
+       ot->description = "Add a new loop between existing loops";
        
        /* callbacks */
-       ot->invoke= ringcut_invoke;
-       ot->modal= loopcut_modal;
-       ot->cancel= ringcut_cancel;
-       ot->poll= ED_operator_editmesh_region_view3d;
+       ot->invoke = ringcut_invoke;
+       ot->modal = loopcut_modal;
+       ot->cancel = ringcut_cancel;
+       ot->poll = ED_operator_editmesh_region_view3d;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
 
        /* properties */
        prop = RNA_def_int(ot->srna, "number_cuts", 1, 1, INT_MAX, "Number of Cuts", "", 1, 10);
index cdbe34b4bd5846c7c12a6e9ee69ddfa9d67ce838..bdc07bb0365316645f00ba9db481d16743473ae0 100644 (file)
@@ -501,16 +501,16 @@ static int uv_texture_add_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_uv_texture_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add UV Map";
-       ot->description= "Add UV Map";
-       ot->idname= "MESH_OT_uv_texture_add";
+       ot->name = "Add UV Map";
+       ot->description = "Add UV Map";
+       ot->idname = "MESH_OT_uv_texture_add";
        
        /* api callbacks */
-       ot->poll= layers_poll;
-       ot->exec= uv_texture_add_exec;
+       ot->poll = layers_poll;
+       ot->exec = uv_texture_add_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int drop_named_image_invoke(bContext *C, wmOperator *op, wmEvent *event)
@@ -584,16 +584,16 @@ static int drop_named_image_invoke(bContext *C, wmOperator *op, wmEvent *event)
 void MESH_OT_drop_named_image(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Assign Image to UV Map";
-       ot->description= "Assign Image to active UV Map, or create an UV Map";
-       ot->idname= "MESH_OT_drop_named_image";
+       ot->name = "Assign Image to UV Map";
+       ot->description = "Assign Image to active UV Map, or create an UV Map";
+       ot->idname = "MESH_OT_drop_named_image";
        
        /* api callbacks */
-       ot->poll= layers_poll;
-       ot->invoke= drop_named_image_invoke;
+       ot->poll = layers_poll;
+       ot->invoke = drop_named_image_invoke;
        
        /* flags */
-       ot->flag= OPTYPE_UNDO;
+       ot->flag = OPTYPE_UNDO;
        
        /* properties */
        RNA_def_string(ot->srna, "name", "Image", MAX_ID_NAME-2, "Name", "Image name to assign");
@@ -614,16 +614,16 @@ static int uv_texture_remove_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_uv_texture_remove(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove UV Map";
-       ot->description= "Remove UV Map";
-       ot->idname= "MESH_OT_uv_texture_remove";
+       ot->name = "Remove UV Map";
+       ot->description = "Remove UV Map";
+       ot->idname = "MESH_OT_uv_texture_remove";
        
        /* api callbacks */
-       ot->poll= layers_poll;
-       ot->exec= uv_texture_remove_exec;
+       ot->poll = layers_poll;
+       ot->exec = uv_texture_remove_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /*********************** vertex color operators ************************/
@@ -643,16 +643,16 @@ static int vertex_color_add_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_vertex_color_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Vertex Color";
-       ot->description= "Add vertex color layer";
-       ot->idname= "MESH_OT_vertex_color_add";
+       ot->name = "Add Vertex Color";
+       ot->description = "Add vertex color layer";
+       ot->idname = "MESH_OT_vertex_color_add";
        
        /* api callbacks */
-       ot->poll= layers_poll;
-       ot->exec= vertex_color_add_exec;
+       ot->poll = layers_poll;
+       ot->exec = vertex_color_add_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int vertex_color_remove_exec(bContext *C, wmOperator *UNUSED(op))
@@ -669,16 +669,16 @@ static int vertex_color_remove_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_vertex_color_remove(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Vertex Color";
-       ot->description= "Remove vertex color layer";
-       ot->idname= "MESH_OT_vertex_color_remove";
+       ot->name = "Remove Vertex Color";
+       ot->description = "Remove vertex color layer";
+       ot->idname = "MESH_OT_vertex_color_remove";
        
        /* api callbacks */
-       ot->exec= vertex_color_remove_exec;
-       ot->poll= layers_poll;
+       ot->exec = vertex_color_remove_exec;
+       ot->poll = layers_poll;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /*********************** sticky operators ************************/
@@ -707,16 +707,16 @@ static int sticky_add_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_sticky_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Sticky";
-       ot->description= "Add sticky UV texture layer";
-       ot->idname= "MESH_OT_sticky_add";
+       ot->name = "Add Sticky";
+       ot->description = "Add sticky UV texture layer";
+       ot->idname = "MESH_OT_sticky_add";
        
        /* api callbacks */
-       ot->poll= layers_poll;
-       ot->exec= sticky_add_exec;
+       ot->poll = layers_poll;
+       ot->exec = sticky_add_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int sticky_remove_exec(bContext *C, wmOperator *UNUSED(op))
@@ -739,16 +739,16 @@ static int sticky_remove_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_sticky_remove(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove Sticky";
-       ot->description= "Remove sticky UV texture layer";
-       ot->idname= "MESH_OT_sticky_remove";
+       ot->name = "Remove Sticky";
+       ot->description = "Remove sticky UV texture layer";
+       ot->idname = "MESH_OT_sticky_remove";
        
        /* api callbacks */
-       ot->poll= layers_poll;
-       ot->exec= sticky_remove_exec;
+       ot->poll = layers_poll;
+       ot->exec = sticky_remove_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /************************** Add Geometry Layers *************************/
index 38d632ffaee742f111cc1018d5bb3d44165d8786..873bd46a21eba8d91d2997a60c8db23c49a4ef69 100644 (file)
@@ -470,15 +470,15 @@ static int create_navmesh_exec(bContext *C, wmOperator *op)
 void MESH_OT_navmesh_make(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Create navigation mesh";
-       ot->description= "Create navigation mesh for selected objects";
-       ot->idname= "MESH_OT_navmesh_make";
+       ot->name = "Create navigation mesh";
+       ot->description = "Create navigation mesh for selected objects";
+       ot->idname = "MESH_OT_navmesh_make";
 
        /* api callbacks */
-       ot->exec= create_navmesh_exec;
+       ot->exec = create_navmesh_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int navmesh_face_copy_exec(bContext *C, wmOperator *op)
@@ -520,16 +520,16 @@ static int navmesh_face_copy_exec(bContext *C, wmOperator *op)
 void MESH_OT_navmesh_face_copy(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "NavMesh Copy Face Index";
-       ot->description= "Copy the index from the active face";
-       ot->idname= "MESH_OT_navmesh_face_copy";
+       ot->name = "NavMesh Copy Face Index";
+       ot->description = "Copy the index from the active face";
+       ot->idname = "MESH_OT_navmesh_face_copy";
 
        /* api callbacks */
-       ot->poll= ED_operator_editmesh;
-       ot->exec= navmesh_face_copy_exec;
+       ot->poll = ED_operator_editmesh;
+       ot->exec = navmesh_face_copy_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int compare(const void * a, const void * b)
@@ -601,16 +601,16 @@ static int navmesh_face_add_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_navmesh_face_add(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "NavMesh New Face Index";
-       ot->description= "Add a new index and assign it to selected faces";
-       ot->idname= "MESH_OT_navmesh_face_add";
+       ot->name = "NavMesh New Face Index";
+       ot->description = "Add a new index and assign it to selected faces";
+       ot->idname = "MESH_OT_navmesh_face_add";
 
        /* api callbacks */
-       ot->poll= ED_operator_editmesh;
-       ot->exec= navmesh_face_add_exec;
+       ot->poll = ED_operator_editmesh;
+       ot->exec = navmesh_face_add_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int navmesh_obmode_data_poll(bContext *C)
@@ -650,16 +650,16 @@ static int navmesh_reset_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_navmesh_reset(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "NavMesh Reset Index Values";
-       ot->description= "Assign a new index to every face";
-       ot->idname= "MESH_OT_navmesh_reset";
+       ot->name = "NavMesh Reset Index Values";
+       ot->description = "Assign a new index to every face";
+       ot->idname = "MESH_OT_navmesh_reset";
 
        /* api callbacks */
-       ot->poll= navmesh_obmode_poll;
-       ot->exec= navmesh_reset_exec;
+       ot->poll = navmesh_obmode_poll;
+       ot->exec = navmesh_reset_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int navmesh_clear_exec(bContext *C, wmOperator *UNUSED(op))
@@ -678,14 +678,14 @@ static int navmesh_clear_exec(bContext *C, wmOperator *UNUSED(op))
 void MESH_OT_navmesh_clear(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "NavMesh Clear Data";
-       ot->description= "Remove navmesh data from this mesh";
-       ot->idname= "MESH_OT_navmesh_clear";
+       ot->name = "NavMesh Clear Data";
+       ot->description = "Remove navmesh data from this mesh";
+       ot->idname = "MESH_OT_navmesh_clear";
 
        /* api callbacks */
-       ot->poll= navmesh_obmode_data_poll;
-       ot->exec= navmesh_clear_exec;
+       ot->poll = navmesh_obmode_data_poll;
+       ot->exec = navmesh_clear_exec;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
index 2d349f6a7bfcfd6e96a02fe211bd74047f39bc0b..2d20743b21b468092b355e14717767bbb9692082 100644 (file)
@@ -167,16 +167,16 @@ static int mball_select_all_exec(bContext *C, wmOperator *op)
 void MBALL_OT_select_all(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "(De)select All";
-       ot->description= "Change selection of all meta elements";
-       ot->idname= "MBALL_OT_select_all";
+       ot->name = "(De)select All";
+       ot->description = "Change selection of all meta elements";
+       ot->idname = "MBALL_OT_select_all";
 
        /* callback functions */
-       ot->exec= mball_select_all_exec;
-       ot->poll= ED_operator_editmball;
+       ot->exec = mball_select_all_exec;
+       ot->poll = ED_operator_editmball;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        WM_operator_properties_select_all(ot);
 }
@@ -215,17 +215,17 @@ static int select_random_metaelems_exec(bContext *C, wmOperator *op)
 void MBALL_OT_select_random_metaelems(struct wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Random...";
-       ot->description= "Randomly select metaelements";
-       ot->idname= "MBALL_OT_select_random_metaelems";
+       ot->name = "Random...";
+       ot->description = "Randomly select metaelements";
+       ot->idname = "MBALL_OT_select_random_metaelems";
        
        /* callback functions */
-       ot->exec= select_random_metaelems_exec;
-       ot->invoke= WM_operator_props_popup;
-       ot->poll= ED_operator_editmball;
+       ot->exec = select_random_metaelems_exec;
+       ot->invoke = WM_operator_props_popup;
+       ot->poll = ED_operator_editmball;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_float_percentage(ot->srna, "percent", 0.5f, 0.0f, 1.0f, "Percent", "Percentage of metaelems to select randomly", 0.0001f, 1.0f);
@@ -274,17 +274,17 @@ static int duplicate_metaelems_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
 void MBALL_OT_duplicate_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Duplicate Metaelements";
-       ot->description= "Delete selected metaelement(s)";
-       ot->idname= "MBALL_OT_duplicate_metaelems";
+       ot->name = "Duplicate Metaelements";
+       ot->description = "Delete selected metaelement(s)";
+       ot->idname = "MBALL_OT_duplicate_metaelems";
 
        /* callback functions */
-       ot->exec= duplicate_metaelems_exec;
-       ot->invoke= duplicate_metaelems_invoke;
-       ot->poll= ED_operator_editmball;
+       ot->exec = duplicate_metaelems_exec;
+       ot->invoke = duplicate_metaelems_invoke;
+       ot->poll = ED_operator_editmball;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* to give to transform */
        RNA_def_enum(ot->srna, "mode", transform_mode_types, TFM_TRANSLATION, "Mode", "");
@@ -320,16 +320,16 @@ static int delete_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
 void MBALL_OT_delete_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete";
-       ot->description= "Delete selected metaelement(s)";
-       ot->idname= "MBALL_OT_delete_metaelems";
+       ot->name = "Delete";
+       ot->description = "Delete selected metaelement(s)";
+       ot->idname = "MBALL_OT_delete_metaelems";
 
        /* callback functions */
-       ot->exec= delete_metaelems_exec;
-       ot->poll= ED_operator_editmball;
+       ot->exec = delete_metaelems_exec;
+       ot->poll = ED_operator_editmball;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;  
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; 
 }
 
 /***************************** Hide operator *****************************/
@@ -360,16 +360,16 @@ static int hide_metaelems_exec(bContext *C, wmOperator *op)
 void MBALL_OT_hide_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Hide";
-       ot->description= "Hide (un)selected metaelement(s)";
-       ot->idname= "MBALL_OT_hide_metaelems";
+       ot->name = "Hide";
+       ot->description = "Hide (un)selected metaelement(s)";
+       ot->idname = "MBALL_OT_hide_metaelems";
 
        /* callback functions */
-       ot->exec= hide_metaelems_exec;
-       ot->poll= ED_operator_editmball;
+       ot->exec = hide_metaelems_exec;
+       ot->poll = ED_operator_editmball;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* props */
        RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected");
@@ -401,16 +401,16 @@ static int reveal_metaelems_exec(bContext *C, wmOperator *UNUSED(op))
 void MBALL_OT_reveal_metaelems(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reveal";
-       ot->description= "Reveal all hidden metaelements";
-       ot->idname= "MBALL_OT_reveal_metaelems";
+       ot->name = "Reveal";
+       ot->description = "Reveal all hidden metaelements";
+       ot->idname = "MBALL_OT_reveal_metaelems";
        
        /* callback functions */
-       ot->exec= reveal_metaelems_exec;
-       ot->poll= ED_operator_editmball;
+       ot->exec = reveal_metaelems_exec;
+       ot->poll = ED_operator_editmball;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;  
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; 
 }
 
 /* Select MetaElement with mouse click (user can select radius circle or
index 996dd4ca59f18223936c6532e453cd14ab589748..8a8ce53c1d57a94777d608197674c991fb12d942 100644 (file)
@@ -365,18 +365,18 @@ static int object_add_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Object";
+       ot->name = "Add Object";
        ot->description = "Add an object to the scene";
-       ot->idname= "OBJECT_OT_add";
+       ot->idname = "OBJECT_OT_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= object_add_exec;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = object_add_exec;
        
-       ot->poll= ED_operator_objectmode;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_enum(ot->srna, "type", object_type_items, 0, "Type", "");
 
@@ -457,20 +457,20 @@ static int effector_add_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_effector_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Effector";
+       ot->name = "Add Effector";
        ot->description = "Add an empty object with a physics effector to the scene";
-       ot->idname= "OBJECT_OT_effector_add";
+       ot->idname = "OBJECT_OT_effector_add";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= effector_add_exec;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = effector_add_exec;
        
-       ot->poll= ED_operator_objectmode;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
-       ot->prop= RNA_def_enum(ot->srna, "type", field_type_items, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", field_type_items, 0, "Type", "");
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -512,16 +512,16 @@ void OBJECT_OT_camera_add(wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Add Camera";
+       ot->name = "Add Camera";
        ot->description = "Add a camera object to the scene";
-       ot->idname= "OBJECT_OT_camera_add";
+       ot->idname = "OBJECT_OT_camera_add";
        
        /* api callbacks */
-       ot->exec= object_camera_add_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->exec = object_camera_add_exec;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
                
        ED_object_add_generic_props(ot, TRUE);
        
@@ -590,17 +590,17 @@ static int object_metaball_add_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
 void OBJECT_OT_metaball_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Metaball";
-       ot->description= "Add an metaball object to the scene";
-       ot->idname= "OBJECT_OT_metaball_add";
+       ot->name = "Add Metaball";
+       ot->description = "Add an metaball object to the scene";
+       ot->idname = "OBJECT_OT_metaball_add";
 
        /* api callbacks */
-       ot->invoke= object_metaball_add_invoke;
-       ot->exec= object_metaball_add_exec;
-       ot->poll= ED_operator_scene_editable;
+       ot->invoke = object_metaball_add_invoke;
+       ot->exec = object_metaball_add_exec;
+       ot->poll = ED_operator_scene_editable;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_enum(ot->srna, "type", metaelem_type_items, 0, "Primitive", "");
        ED_object_add_generic_props(ot, TRUE);
@@ -630,17 +630,17 @@ static int object_add_text_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_text_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Text";
+       ot->name = "Add Text";
        ot->description = "Add a text object to the scene";
-       ot->idname= "OBJECT_OT_text_add";
+       ot->idname = "OBJECT_OT_text_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= object_add_text_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = object_add_text_exec;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        ED_object_add_generic_props(ot, TRUE);
 }
 
@@ -685,17 +685,17 @@ static int object_armature_add_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_armature_add(wmOperatorType *ot)
 {      
        /* identifiers */
-       ot->name= "Add Armature";
+       ot->name = "Add Armature";
        ot->description = "Add an armature object to the scene";
-       ot->idname= "OBJECT_OT_armature_add";
+       ot->idname = "OBJECT_OT_armature_add";
        
        /* api callbacks */
-       ot->invoke= ED_object_add_generic_invoke;
-       ot->exec= object_armature_add_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->invoke = ED_object_add_generic_invoke;
+       ot->exec = object_armature_add_exec;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        ED_object_add_generic_props(ot, TRUE);
 }
 
@@ -752,20 +752,20 @@ void OBJECT_OT_lamp_add(wmOperatorType *ot)
                {0, NULL, 0, NULL, NULL}};
 
        /* identifiers */
-       ot->name= "Add Lamp";
+       ot->name = "Add Lamp";
        ot->description = "Add a lamp object to the scene";
-       ot->idname= "OBJECT_OT_lamp_add";
+       ot->idname = "OBJECT_OT_lamp_add";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= object_lamp_add_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = object_lamp_add_exec;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", lamp_type_items, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", lamp_type_items, 0, "Type", "");
 
        ED_object_add_generic_props(ot, FALSE);
 }
@@ -843,16 +843,16 @@ static int object_speaker_add_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_speaker_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Speaker";
+       ot->name = "Add Speaker";
        ot->description = "Add a speaker object to the scene";
-       ot->idname= "OBJECT_OT_speaker_add";
+       ot->idname = "OBJECT_OT_speaker_add";
 
        /* api callbacks */
-       ot->exec= object_speaker_add_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->exec = object_speaker_add_exec;
+       ot->poll = ED_operator_objectmode;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        ED_object_add_generic_props(ot, TRUE);
 }
@@ -863,23 +863,23 @@ void OBJECT_OT_group_instance_add(wmOperatorType *ot)
        PropertyRNA *prop;
 
        /* identifiers */
-       ot->name= "Add Group Instance";
+       ot->name = "Add Group Instance";
        ot->description = "Add a dupligroup instance";
-       ot->idname= "OBJECT_OT_group_instance_add";
+       ot->idname = "OBJECT_OT_group_instance_add";
 
        /* api callbacks */
-       ot->invoke= WM_enum_search_invoke;
-       ot->exec= group_instance_add_exec;
+       ot->invoke = WM_enum_search_invoke;
+       ot->exec = group_instance_add_exec;
 
-       ot->poll= ED_operator_objectmode;
+       ot->poll = ED_operator_objectmode;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
        prop= RNA_def_enum(ot->srna, "group", DummyRNA_NULL_items, 0, "Group", "");
        RNA_def_enum_funcs(prop, RNA_group_itemf);
-       ot->prop= prop;
+       ot->prop = prop;
        ED_object_add_generic_props(ot, FALSE);
 }
 
@@ -946,17 +946,17 @@ static int object_delete_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_delete(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete";
+       ot->name = "Delete";
        ot->description = "Delete selected objects";
-       ot->idname= "OBJECT_OT_delete";
+       ot->idname = "OBJECT_OT_delete";
        
        /* api callbacks */
-       ot->invoke= WM_operator_confirm;
-       ot->exec= object_delete_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->invoke = WM_operator_confirm;
+       ot->exec = object_delete_exec;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        RNA_def_boolean(ot->srna, "use_global", 0, "Delete Globally", "Remove object from all scenes");
 }
@@ -1209,17 +1209,17 @@ void OBJECT_OT_duplicates_make_real(wmOperatorType *ot)
 {
        
        /* identifiers */
-       ot->name= "Make Duplicates Real";
+       ot->name = "Make Duplicates Real";
        ot->description = "Make dupli objects attached to this object real";
-       ot->idname= "OBJECT_OT_duplicates_make_real";
+       ot->idname = "OBJECT_OT_duplicates_make_real";
        
        /* api callbacks */
-       ot->exec= object_duplicates_make_real_exec;
+       ot->exec = object_duplicates_make_real_exec;
        
-       ot->poll= ED_operator_objectmode;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        RNA_def_boolean(ot->srna, "use_base_parent", 0, "Parent", "Parent newly created objects to the original duplicator");
        RNA_def_boolean(ot->srna, "use_hierarchy", 0, "Keep Hierarchy", "Maintain parent child relationships");
@@ -1580,20 +1580,20 @@ static int convert_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_convert(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Convert to";
+       ot->name = "Convert to";
        ot->description = "Convert selected objects to another type";
-       ot->idname= "OBJECT_OT_convert";
+       ot->idname = "OBJECT_OT_convert";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= convert_exec;
-       ot->poll= convert_poll;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = convert_exec;
+       ot->poll = convert_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "target", convert_target_items, OB_MESH, "Target", "Type of object to convert to");
+       ot->prop = RNA_def_enum(ot->srna, "target", convert_target_items, OB_MESH, "Target", "Type of object to convert to");
        RNA_def_boolean(ot->srna, "keep_original", 0, "Keep Original", "Keep original objects instead of replacing them");
 }
 
@@ -1910,16 +1910,16 @@ void OBJECT_OT_duplicate(wmOperatorType *ot)
        PropertyRNA *prop;
        
        /* identifiers */
-       ot->name= "Duplicate Objects";
+       ot->name = "Duplicate Objects";
        ot->description = "Duplicate selected objects";
-       ot->idname= "OBJECT_OT_duplicate";
+       ot->idname = "OBJECT_OT_duplicate";
        
        /* api callbacks */
-       ot->exec= duplicate_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->exec = duplicate_exec;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* to give to transform */
        RNA_def_boolean(ot->srna, "linked", 0, "Linked", "Duplicate object but not object data, linking to the original data");
@@ -1981,16 +1981,16 @@ static int add_named_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_add_named(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Named Object";
+       ot->name = "Add Named Object";
        ot->description = "Add named object";
-       ot->idname= "OBJECT_OT_add_named";
+       ot->idname = "OBJECT_OT_add_named";
        
        /* api callbacks */
-       ot->exec= add_named_exec;
-       ot->poll= ED_operator_objectmode;
+       ot->exec = add_named_exec;
+       ot->poll = ED_operator_objectmode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_boolean(ot->srna, "linked", 0, "Linked", "Duplicate object but not object data, linking to the original data");
        RNA_def_string(ot->srna, "name", "Cube", MAX_ID_NAME-2, "Name", "Object name to add");
@@ -2039,16 +2039,16 @@ static int join_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_join(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Join";
+       ot->name = "Join";
        ot->description = "Join selected objects into active object";
-       ot->idname= "OBJECT_OT_join";
+       ot->idname = "OBJECT_OT_join";
        
        /* api callbacks */
-       ot->exec= join_exec;
-       ot->poll= join_poll;
+       ot->exec = join_exec;
+       ot->poll = join_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /**************************** Join as Shape Key*************************/
@@ -2088,14 +2088,14 @@ static int join_shapes_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_join_shapes(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Join as Shapes";
+       ot->name = "Join as Shapes";
        ot->description = "Merge selected objects to shapes of active object";
-       ot->idname= "OBJECT_OT_join_shapes";
+       ot->idname = "OBJECT_OT_join_shapes";
        
        /* api callbacks */
-       ot->exec= join_shapes_exec;
-       ot->poll= join_shapes_poll;
+       ot->exec = join_shapes_exec;
+       ot->poll = join_shapes_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
index b9cbc653c1946c2a61d8938255cab66401e9d769..4f64a64607e92a6420ce94d2d64eacb53cb313b8 100644 (file)
@@ -1536,12 +1536,12 @@ static int bake_image_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_bake_image(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Bake";
-       ot->description= "Bake image textures of selected objects";
-       ot->idname= "OBJECT_OT_bake_image";
+       ot->name = "Bake";
+       ot->description = "Bake image textures of selected objects";
+       ot->idname = "OBJECT_OT_bake_image";
 
        /* api callbacks */
-       ot->exec= bake_image_exec;
-       ot->invoke= objects_bake_render_invoke;
-       ot->modal= objects_bake_render_modal;
+       ot->exec = bake_image_exec;
+       ot->invoke = objects_bake_render_invoke;
+       ot->modal = objects_bake_render_modal;
 }
index 2529b6f518f38dfa78d3c8fc90ad4cf04c5ffc4b..e1dca0278f4507841992dc4f14e84ef95e3047ab 100644 (file)
@@ -644,16 +644,16 @@ static int stretchto_reset_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(e
 void CONSTRAINT_OT_stretchto_reset (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reset Original Length";
-       ot->idname= "CONSTRAINT_OT_stretchto_reset";
-       ot->description= "Reset original length of bone for Stretch To Constraint";
+       ot->name = "Reset Original Length";
+       ot->idname = "CONSTRAINT_OT_stretchto_reset";
+       ot->description = "Reset original length of bone for Stretch To Constraint";
        
-       ot->exec= stretchto_reset_exec;
-       ot->invoke= stretchto_reset_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = stretchto_reset_exec;
+       ot->invoke = stretchto_reset_invoke;
+       ot->poll = edit_constraint_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        edit_constraint_properties(ot);
 }
 
@@ -687,16 +687,16 @@ static int limitdistance_reset_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
 void CONSTRAINT_OT_limitdistance_reset (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Reset Distance";
-       ot->idname= "CONSTRAINT_OT_limitdistance_reset";
-       ot->description= "Reset limiting distance for Limit Distance Constraint";
+       ot->name = "Reset Distance";
+       ot->idname = "CONSTRAINT_OT_limitdistance_reset";
+       ot->description = "Reset limiting distance for Limit Distance Constraint";
        
-       ot->exec= limitdistance_reset_exec;
-       ot->invoke= limitdistance_reset_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = limitdistance_reset_exec;
+       ot->invoke = limitdistance_reset_invoke;
+       ot->poll = edit_constraint_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        edit_constraint_properties(ot);
 }
 
@@ -813,16 +813,16 @@ static int childof_set_inverse_invoke(bContext *C, wmOperator *op, wmEvent *UNUS
 void CONSTRAINT_OT_childof_set_inverse (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Inverse";
-       ot->idname= "CONSTRAINT_OT_childof_set_inverse";
-       ot->description= "Set inverse correction for ChildOf constraint";
+       ot->name = "Set Inverse";
+       ot->idname = "CONSTRAINT_OT_childof_set_inverse";
+       ot->description = "Set inverse correction for ChildOf constraint";
        
-       ot->exec= childof_set_inverse_exec;
-       ot->invoke= childof_set_inverse_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = childof_set_inverse_exec;
+       ot->invoke = childof_set_inverse_invoke;
+       ot->poll = edit_constraint_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        edit_constraint_properties(ot);
 }
 
@@ -857,16 +857,16 @@ static int childof_clear_inverse_invoke(bContext *C, wmOperator *op, wmEvent *UN
 void CONSTRAINT_OT_childof_clear_inverse (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Inverse";
-       ot->idname= "CONSTRAINT_OT_childof_clear_inverse";
-       ot->description= "Clear inverse correction for ChildOf constraint";
+       ot->name = "Clear Inverse";
+       ot->idname = "CONSTRAINT_OT_childof_clear_inverse";
+       ot->description = "Clear inverse correction for ChildOf constraint";
        
-       ot->exec= childof_clear_inverse_exec;
-       ot->invoke= childof_clear_inverse_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = childof_clear_inverse_exec;
+       ot->invoke = childof_clear_inverse_invoke;
+       ot->poll = edit_constraint_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        edit_constraint_properties(ot);
 }
 
@@ -904,16 +904,16 @@ static int objectsolver_set_inverse_invoke(bContext *C, wmOperator *op, wmEvent
 void CONSTRAINT_OT_objectsolver_set_inverse (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Inverse";
-       ot->idname= "CONSTRAINT_OT_objectsolver_set_inverse";
-       ot->description= "Set inverse correction for ObjectSolver constraint";
+       ot->name = "Set Inverse";
+       ot->idname = "CONSTRAINT_OT_objectsolver_set_inverse";
+       ot->description = "Set inverse correction for ObjectSolver constraint";
 
-       ot->exec= objectsolver_set_inverse_exec;
-       ot->invoke= objectsolver_set_inverse_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = objectsolver_set_inverse_exec;
+       ot->invoke = objectsolver_set_inverse_invoke;
+       ot->poll = edit_constraint_poll;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        edit_constraint_properties(ot);
 }
 
@@ -947,16 +947,16 @@ static int objectsolver_clear_inverse_invoke(bContext *C, wmOperator *op, wmEven
 void CONSTRAINT_OT_objectsolver_clear_inverse (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Clear Inverse";
-       ot->idname= "CONSTRAINT_OT_objectsolver_clear_inverse";
-       ot->description= "Clear inverse correction for ObjectSolver constraint";
+       ot->name = "Clear Inverse";
+       ot->idname = "CONSTRAINT_OT_objectsolver_clear_inverse";
+       ot->description = "Clear inverse correction for ObjectSolver constraint";
 
-       ot->exec= objectsolver_clear_inverse_exec;
-       ot->invoke= objectsolver_clear_inverse_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = objectsolver_clear_inverse_exec;
+       ot->invoke = objectsolver_clear_inverse_invoke;
+       ot->poll = edit_constraint_poll;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        edit_constraint_properties(ot);
 }
 
@@ -1033,16 +1033,16 @@ static int constraint_delete_exec (bContext *C, wmOperator *UNUSED(op))
 void CONSTRAINT_OT_delete (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Delete Constraint";
-       ot->idname= "CONSTRAINT_OT_delete";
-       ot->description= "Remove constraint from constraint stack";
+       ot->name = "Delete Constraint";
+       ot->idname = "CONSTRAINT_OT_delete";
+       ot->description = "Remove constraint from constraint stack";
        
        /* callbacks */
-       ot->exec= constraint_delete_exec;
-       ot->poll= constraint_poll;
+       ot->exec = constraint_delete_exec;
+       ot->poll = constraint_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; 
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; 
 }
 
 static int constraint_move_down_exec (bContext *C, wmOperator *op)
@@ -1078,17 +1078,17 @@ static int constraint_move_down_invoke(bContext *C, wmOperator *op, wmEvent *UNU
 void CONSTRAINT_OT_move_down (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Constraint Down";
-       ot->idname= "CONSTRAINT_OT_move_down";
-       ot->description= "Move constraint down in constraint stack";
+       ot->name = "Move Constraint Down";
+       ot->idname = "CONSTRAINT_OT_move_down";
+       ot->description = "Move constraint down in constraint stack";
        
        /* callbacks */
-       ot->exec= constraint_move_down_exec;
-       ot->invoke= constraint_move_down_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = constraint_move_down_exec;
+       ot->invoke = constraint_move_down_invoke;
+       ot->poll = edit_constraint_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; 
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; 
        edit_constraint_properties(ot);
 }
 
@@ -1125,17 +1125,17 @@ static int constraint_move_up_invoke(bContext *C, wmOperator *op, wmEvent *UNUSE
 void CONSTRAINT_OT_move_up (wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Move Constraint Up";
-       ot->idname= "CONSTRAINT_OT_move_up";
-       ot->description= "Move constraint up in constraint stack";
+       ot->name = "Move Constraint Up";
+       ot->idname = "CONSTRAINT_OT_move_up";
+       ot->description = "Move constraint up in constraint stack";
        
        /* callbacks */
-       ot->exec= constraint_move_up_exec;
-       ot->invoke= constraint_move_up_invoke;
-       ot->poll= edit_constraint_poll;
+       ot->exec = constraint_move_up_exec;
+       ot->invoke = constraint_move_up_invoke;
+       ot->poll = edit_constraint_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; 
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO; 
        edit_constraint_properties(ot);
 }
 
@@ -1173,12 +1173,12 @@ void POSE_OT_constraints_clear(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name = "Clear Pose Constraints";
-       ot->idname= "POSE_OT_constraints_clear";
-       ot->description= "Clear all the constraints for the selected bones";
+       ot->idname = "POSE_OT_constraints_clear";
+       ot->description = "Clear all the constraints for the selected bones";
        
        /* callbacks */
-       ot->exec= pose_constraints_clear_exec;
-       ot->poll= ED_operator_posemode; // XXX - do we want to ensure there are selected bones too?
+       ot->exec = pose_constraints_clear_exec;
+       ot->poll = ED_operator_posemode; // XXX - do we want to ensure there are selected bones too?
 }
 
 
@@ -1208,12 +1208,12 @@ void OBJECT_OT_constraints_clear(wmOperatorType *ot)
 {
        /* identifiers */
        ot->name = "Clear Object Constraints";
-       ot->idname= "OBJECT_OT_constraints_clear";
-       ot->description= "Clear all the constraints for the active Object only";
+       ot->idname = "OBJECT_OT_constraints_clear";
+       ot->description = "Clear all the constraints for the active Object only";
        
        /* callbacks */
-       ot->exec= object_constraints_clear_exec;
-       ot->poll= ED_operator_object_active_editable;
+       ot->exec = object_constraints_clear_exec;
+       ot->poll = ED_operator_object_active_editable;
 }
 
 /************************ copy all constraints operators *********************/
@@ -1253,16 +1253,16 @@ static int pose_constraint_copy_exec(bContext *C, wmOperator *op)
 void POSE_OT_constraints_copy(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Copy Constraints to Selected";
-       ot->idname= "POSE_OT_constraints_copy";
+       ot->name = "Copy Constraints to Selected";
+       ot->idname = "POSE_OT_constraints_copy";
        ot->description = "Copy constraints to other selected bones";
        
        /* api callbacks */
-       ot->exec= pose_constraint_copy_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_constraint_copy_exec;
+       ot->poll = ED_operator_posemode;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int object_constraint_copy_exec(bContext *C, wmOperator *UNUSED(op))
@@ -1294,16 +1294,16 @@ static int object_constraint_copy_exec(bContext *C, wmOperator *UNUSED(op))
 void OBJECT_OT_constraints_copy(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Copy Constraints to Selected";
-       ot->idname= "OBJECT_OT_constraints_copy";
+       ot->name = "Copy Constraints to Selected";
+       ot->idname = "OBJECT_OT_constraints_copy";
        ot->description = "Copy constraints to other selected objects";
        
        /* api callbacks */
-       ot->exec= object_constraint_copy_exec;
-       ot->poll= ED_operator_object_active_editable;
+       ot->exec = object_constraint_copy_exec;
+       ot->poll = ED_operator_object_active_editable;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /************************ add constraint operators *********************/
@@ -1609,77 +1609,77 @@ static int pose_constraint_add_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_constraint_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Constraint";
+       ot->name = "Add Constraint";
        ot->description = "Add a constraint to the active object";
-       ot->idname= "OBJECT_OT_constraint_add";
+       ot->idname = "OBJECT_OT_constraint_add";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= object_constraint_add_exec;
-       ot->poll= ED_operator_object_active_editable;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = object_constraint_add_exec;
+       ot->poll = ED_operator_object_active_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
 }
 
 void OBJECT_OT_constraint_add_with_targets(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Constraint (with Targets)";
+       ot->name = "Add Constraint (with Targets)";
        ot->description = "Add a constraint to the active object, with target (where applicable) set to the selected Objects/Bones";
-       ot->idname= "OBJECT_OT_constraint_add_with_targets";
+       ot->idname = "OBJECT_OT_constraint_add_with_targets";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= object_constraint_add_exec;
-       ot->poll= ED_operator_object_active_editable;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = object_constraint_add_exec;
+       ot->poll = ED_operator_object_active_editable;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
 }
 
 void POSE_OT_constraint_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Constraint";
+       ot->name = "Add Constraint";
        ot->description = "Add a constraint to the active bone";
-       ot->idname= "POSE_OT_constraint_add";
+       ot->idname = "POSE_OT_constraint_add";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= pose_constraint_add_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = pose_constraint_add_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
 }
 
 void POSE_OT_constraint_add_with_targets(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add Constraint (with Targets)";
+       ot->name = "Add Constraint (with Targets)";
        ot->description = "Add a constraint to the active bone, with target (where applicable) set to the selected Objects/Bones";
-       ot->idname= "POSE_OT_constraint_add_with_targets";
+       ot->idname = "POSE_OT_constraint_add_with_targets";
        
        /* api callbacks */
-       ot->invoke= WM_menu_invoke;
-       ot->exec= pose_constraint_add_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = WM_menu_invoke;
+       ot->exec = pose_constraint_add_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
-       ot->prop= RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
+       ot->prop = RNA_def_enum(ot->srna, "type", constraint_type_items, 0, "Type", "");
 }
 
 /************************ IK Constraint operators *********************/
@@ -1752,17 +1752,17 @@ static int pose_ik_add_exec(bContext *C, wmOperator *op)
 void POSE_OT_ik_add(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Add IK to Bone";
-       ot->description= "Add IK Constraint to the active Bone";
-       ot->idname= "POSE_OT_ik_add";
+       ot->name = "Add IK to Bone";
+       ot->description = "Add IK Constraint to the active Bone";
+       ot->idname = "POSE_OT_ik_add";
        
        /* api callbacks */
-       ot->invoke= pose_ik_add_invoke;
-       ot->exec= pose_ik_add_exec;
-       ot->poll= ED_operator_posemode;
+       ot->invoke = pose_ik_add_invoke;
+       ot->exec = pose_ik_add_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        /* properties */
        RNA_def_boolean(ot->srna, "with_targets", 1, "With Targets", "Assign IK Constraint with targets derived from the select bones/objects");
@@ -1803,15 +1803,15 @@ static int pose_ik_clear_exec(bContext *C, wmOperator *UNUSED(op))
 void POSE_OT_ik_clear(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Remove IK";
-       ot->description= "Remove all IK Constraints from selected bones";
-       ot->idname= "POSE_OT_ik_clear";
+       ot->name = "Remove IK";
+       ot->description = "Remove all IK Constraints from selected bones";
+       ot->idname = "POSE_OT_ik_clear";
        
        /* api callbacks */
-       ot->exec= pose_ik_clear_exec;
-       ot->poll= ED_operator_posemode;
+       ot->exec = pose_ik_clear_exec;
+       ot->poll = ED_operator_posemode;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
index e456e6f0796e2c6fd81dd124f20d21be5752dce6..10f3081893182a600c86153d4168d1dc88cc7c4c 100644 (file)
@@ -161,16 +161,16 @@ void OBJECT_OT_hide_view_clear(wmOperatorType *ot)
 {
        
        /* identifiers */
-       ot->name= "Clear Restrict View";
+       ot->name = "Clear Restrict View";
        ot->description = "Reveal the object by setting the hide flag";
-       ot->idname= "OBJECT_OT_hide_view_clear";
+       ot->idname = "OBJECT_OT_hide_view_clear";
        
        /* api callbacks */
-       ot->exec= object_hide_view_clear_exec;
-       ot->poll= ED_operator_view3d_active;
+       ot->exec = object_hide_view_clear_exec;
+       ot->poll = ED_operator_view3d_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int object_hide_view_set_exec(bContext *C, wmOperator *op)
@@ -215,16 +215,16 @@ static int object_hide_view_set_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_hide_view_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Restrict View";
+       ot->name = "Set Restrict View";
        ot->description = "Hide the object by setting the hide flag";
-       ot->idname= "OBJECT_OT_hide_view_set";
+       ot->idname = "OBJECT_OT_hide_view_set";
        
        /* api callbacks */
-       ot->exec= object_hide_view_set_exec;
-       ot->poll= ED_operator_view3d_active;
+       ot->exec = object_hide_view_set_exec;
+       ot->poll = ED_operator_view3d_active;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
        
        RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected objects");
        
@@ -254,16 +254,16 @@ void OBJECT_OT_hide_render_clear(wmOperatorType *ot)
 {
 
        /* identifiers */
-       ot->name= "Clear Restrict Render";
+       ot->name = "Clear Restrict Render";
        ot->description = "Reveal the render object by setting the hide render flag";
-       ot->idname= "OBJECT_OT_hide_render_clear";
+       ot->idname = "OBJECT_OT_hide_render_clear";
 
        /* api callbacks */
-       ot->exec= object_hide_render_clear_exec;
-       ot->poll= ED_operator_view3d_active;
+       ot->exec = object_hide_render_clear_exec;
+       ot->poll = ED_operator_view3d_active;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 static int object_hide_render_set_exec(bContext *C, wmOperator *op)
@@ -290,16 +290,16 @@ static int object_hide_render_set_exec(bContext *C, wmOperator *op)
 void OBJECT_OT_hide_render_set(wmOperatorType *ot)
 {
        /* identifiers */
-       ot->name= "Set Restrict Render";
+       ot->name = "Set Restrict Render";
        ot->description = "Hide the render object by setting the hide render flag";
-       ot->idname= "OBJECT_OT_hide_render_set";
+       ot->idname = "OBJECT_OT_hide_render_set";
 
        /* api callbacks */
-       ot->exec= object_hide_render_set_exec;
-       ot->poll= ED_operator_view3d_active;
+       ot->exec = object_hide_render_set_exec;
+       ot->poll = ED_operator_view3d_active;
 
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 
        RNA_def_boolean(ot->srna, "unselected", 0, "Unselected", "Hide unselected rather than selected objects");
 }
@@ -547,17 +547,17 @@ void OBJECT_OT_editmode_toggle(wmOperatorType *ot)
 {
        
        /* identifiers */
-       ot->name= "Toggle Editmode";
+       ot->name = "Toggle Editmode";
        ot->description = "Toggle object's editmode";
-       ot->idname= "OBJECT_OT_editmode_toggle";
+       ot->idname = "OBJECT_OT_editmode_toggle";
        
        /* api callbacks */
-       ot->exec= editmode_toggle_exec;
+       ot->exec = editmode_toggle_exec;
        
-       ot->poll= editmode_toggle_poll;
+       ot->poll = editmode_toggle_poll;
        
        /* flags */
-       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag = OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* *************************** */
@@