diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-03-03 02:39:08 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-03-03 02:39:08 +0300 |
commit | a19e9177826312d8ab60d73dd61347042cb68a41 (patch) | |
tree | 1c05df5760374c749cf47025e7bff4967ac1465f /source/blender/editors/space_action/action_edit.c | |
parent | 9f397b3a3d4bda2e28feb99f4a10c775e8fbbff7 (diff) |
Bugfix [#26269] Initiating a duplication with shift D and cancelling
in dope sheet/ graph editor leads to duplicated keys
The old hack using the transform "undostring" didn't work anymore, as
this wasn't set. Instead, I've added a special mode transform mode for
this that the duplicate operators can set to get this functionality.
Diffstat (limited to 'source/blender/editors/space_action/action_edit.c')
-rw-r--r-- | source/blender/editors/space_action/action_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index 10c4ebcd9ca..473e2ac3b96 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -663,7 +663,7 @@ static int actkeys_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED { actkeys_duplicate_exec(C, op); - RNA_int_set(op->ptr, "mode", TFM_TIME_TRANSLATE); + RNA_int_set(op->ptr, "mode", TFM_TIME_DUPLICATE); WM_operator_name_call(C, "TRANSFORM_OT_transform", WM_OP_INVOKE_REGION_WIN, op->ptr); return OPERATOR_FINISHED; |