Cleanup: rename evt to event
Following naming convention of most operators.
This commit is contained in:
parent
59889d9b4f
commit
e0ba6a4411
|
@ -2544,7 +2544,7 @@ static bool animchannels_find_poll(bContext *C)
|
|||
}
|
||||
|
||||
/* find_invoke() - Get initial channels */
|
||||
static int animchannels_find_invoke(bContext *C, wmOperator *op, const wmEvent *evt)
|
||||
static int animchannels_find_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
bAnimContext ac;
|
||||
|
||||
|
@ -2557,7 +2557,7 @@ static int animchannels_find_invoke(bContext *C, wmOperator *op, const wmEvent *
|
|||
RNA_string_set(op->ptr, "query", ac.ads->searchstr);
|
||||
|
||||
/* defer to popup */
|
||||
return WM_operator_props_popup(C, op, evt);
|
||||
return WM_operator_props_popup(C, op, event);
|
||||
}
|
||||
|
||||
/* find_exec() - Called to set the value */
|
||||
|
|
|
@ -476,9 +476,9 @@ static int pose_clear_paths_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
/* operator callback/wrapper */
|
||||
static int pose_clear_paths_invoke(bContext *C, wmOperator *op, const wmEvent *evt)
|
||||
static int pose_clear_paths_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
if ((evt->shift) && !RNA_struct_property_is_set(op->ptr, "only_selected")) {
|
||||
if ((event->shift) && !RNA_struct_property_is_set(op->ptr, "only_selected")) {
|
||||
RNA_boolean_set(op->ptr, "only_selected", true);
|
||||
}
|
||||
return pose_clear_paths_exec(C, op);
|
||||
|
|
|
@ -1420,7 +1420,7 @@ void GPENCIL_OT_layer_merge(wmOperatorType *ot)
|
|||
|
||||
/* ********************** Change Layer ***************************** */
|
||||
|
||||
static int gpencil_layer_change_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(evt))
|
||||
static int gpencil_layer_change_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
|
||||
{
|
||||
uiPopupMenu *pup;
|
||||
uiLayout *layout;
|
||||
|
|
|
@ -1330,9 +1330,9 @@ static int object_clear_paths_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
/* operator callback/wrapper */
|
||||
static int object_clear_paths_invoke(bContext *C, wmOperator *op, const wmEvent *evt)
|
||||
static int object_clear_paths_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
if ((evt->shift) && !RNA_struct_property_is_set(op->ptr, "only_selected")) {
|
||||
if ((event->shift) && !RNA_struct_property_is_set(op->ptr, "only_selected")) {
|
||||
RNA_boolean_set(op->ptr, "only_selected", true);
|
||||
}
|
||||
return object_clear_paths_exec(C, op);
|
||||
|
|
|
@ -663,11 +663,11 @@ static int action_unlink_exec(bContext *C, wmOperator *op)
|
|||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
static int action_unlink_invoke(bContext *C, wmOperator *op, const wmEvent *evt)
|
||||
static int action_unlink_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
/* NOTE: this is hardcoded to match the behavior for the unlink button
|
||||
* (in interface_templates.c). */
|
||||
RNA_boolean_set(op->ptr, "force_delete", evt->shift != 0);
|
||||
RNA_boolean_set(op->ptr, "force_delete", event->shift != 0);
|
||||
return action_unlink_exec(C, op);
|
||||
}
|
||||
|
||||
|
|
|
@ -594,11 +594,11 @@ static int nla_action_unlink_exec(bContext *C, wmOperator *op)
|
|||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
static int nla_action_unlink_invoke(bContext *C, wmOperator *op, const wmEvent *evt)
|
||||
static int nla_action_unlink_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
/* NOTE: this is hardcoded to match the behavior for the unlink button
|
||||
* (in interface_templates.c) */
|
||||
RNA_boolean_set(op->ptr, "force_delete", evt->shift != 0);
|
||||
RNA_boolean_set(op->ptr, "force_delete", event->shift != 0);
|
||||
return nla_action_unlink_exec(C, op);
|
||||
}
|
||||
|
||||
|
|
|
@ -2267,7 +2267,7 @@ static bool ed_operator_outliner_id_orphans_active(bContext *C)
|
|||
|
||||
/** \} */
|
||||
|
||||
static int outliner_orphans_purge_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(evt))
|
||||
static int outliner_orphans_purge_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
|
||||
{
|
||||
Main *bmain = CTX_data_main(C);
|
||||
int num_tagged[INDEX_ID_MAX] = {0};
|
||||
|
|
Loading…
Reference in New Issue