diff options
Diffstat (limited to 'source/blender/editors/space_action/action_ops.c')
-rw-r--r-- | source/blender/editors/space_action/action_ops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c index b6fbc34550f..38d221858b3 100644 --- a/source/blender/editors/space_action/action_ops.c +++ b/source/blender/editors/space_action/action_ops.c @@ -95,9 +95,11 @@ void ED_operatormacros_action(void) wmOperatorTypeMacro *otmacro; ot= WM_operatortype_append_macro("ACTION_OT_duplicate_move", "Duplicate", OPTYPE_UNDO|OPTYPE_REGISTER); - WM_operatortype_macro_define(ot, "ACTION_OT_duplicate"); - otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform"); - RNA_int_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE); + if (ot) { + WM_operatortype_macro_define(ot, "ACTION_OT_duplicate"); + otmacro= WM_operatortype_macro_define(ot, "TRANSFORM_OT_transform"); + RNA_int_set(otmacro->ptr, "mode", TFM_TIME_DUPLICATE); + } } |