remove null checks for macro definitions, if these fail then something is broken elsewhere, better not fail silently.
This commit is contained in:
@@ -254,11 +254,9 @@ void ED_operatormacros_graph(void)
|
||||
ot = WM_operatortype_append_macro("GRAPH_OT_duplicate_move", "Duplicate",
|
||||
"Make a copy of all selected keyframes and move them",
|
||||
OPTYPE_UNDO | OPTYPE_REGISTER);
|
||||
if (ot) {
|
||||
WM_operatortype_macro_define(ot, "GRAPH_OT_duplicate");
|
||||
otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
|
||||
RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
|
||||
}
|
||||
WM_operatortype_macro_define(ot, "GRAPH_OT_duplicate");
|
||||
otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform");
|
||||
RNA_enum_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user