diff options
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 202 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 144 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_ops.c | 46 | ||||
-rw-r--r-- | source/blender/editors/animation/drivers.c | 40 | ||||
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 78 | ||||
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 68 |
6 files changed, 289 insertions, 289 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index ec1583f2aa3..bfe17b80fda 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -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 diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index 803516e211b..f5c70796b58 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -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 diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c index 5b246e63a20..05a7a263e08 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -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 **********************************/ diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 6af95b35ba8..881de2904f7 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -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; } /* ************************************************** */ diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index e82f234d2b6..fdd790f58fc 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -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"); diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index 82d0bff79b8..32078060ca6 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -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"); |