Anim: View FCurve of Property in the Graph Editor #114407
|
@ -4520,14 +4520,6 @@ static int view_curve_in_graph_editor_exec(bContext *C, wmOperator *op)
|
|||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
static int view_curve_in_graph_editor_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
if (RNA_boolean_get(op->ptr, "use_modifier_key")) {
|
||||
RNA_boolean_set(op->ptr, "isolate", event->modifier == KM_ALT);
|
||||
}
|
||||
return view_curve_in_graph_editor_exec(C, op);
|
||||
}
|
||||
|
||||
static void ANIM_OT_view_curve_in_graph_editor(wmOperatorType *ot)
|
||||
{
|
||||
/* Identifiers */
|
||||
|
@ -4538,7 +4530,6 @@ static void ANIM_OT_view_curve_in_graph_editor(wmOperatorType *ot)
|
|||
"curves";
|
||||
|
||||
/* API callbacks */
|
||||
ot->invoke = view_curve_in_graph_editor_invoke;
|
||||
ot->exec = view_curve_in_graph_editor_exec;
|
||||
|
||||
RNA_def_boolean(ot->srna,
|
||||
|
@ -4552,16 +4543,6 @@ static void ANIM_OT_view_curve_in_graph_editor(wmOperatorType *ot)
|
|||
false,
|
||||
"Isolate",
|
||||
"Hides all other F-Curves other than the ones being framed");
|
||||
|
||||
PropertyRNA *prop = RNA_def_boolean(
|
||||
ot->srna,
|
||||
"use_modifier_key",
|
||||
false,
|
||||
"Use Modifier Key",
|
||||
"Check the Alt key when the operator is executed to define the isolation behavior. If true, "
|
||||
"overrides the isolate property");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN);
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
|
|
@ -671,7 +671,6 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but, const wmEvent *ev
|
|||
UI_ITEM_NONE,
|
||||
&op_ptr);
|
||||
RNA_boolean_set(&op_ptr, "all", false);
|
||||
RNA_boolean_set(&op_ptr, "use_modifier_key", true);
|
||||
|
||||
uiItemFullO_ptr(layout,
|
||||
ot,
|
||||
|
@ -682,7 +681,6 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but, const wmEvent *ev
|
|||
UI_ITEM_NONE,
|
||||
&op_ptr);
|
||||
RNA_boolean_set(&op_ptr, "all", true);
|
||||
RNA_boolean_set(&op_ptr, "use_modifier_key", true);
|
||||
}
|
||||
else {
|
||||
PointerRNA op_ptr;
|
||||
|
@ -698,7 +696,6 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but, const wmEvent *ev
|
|||
UI_ITEM_NONE,
|
||||
&op_ptr);
|
||||
RNA_boolean_set(&op_ptr, "all", false);
|
||||
RNA_boolean_set(&op_ptr, "use_modifier_key", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue