From a19e9177826312d8ab60d73dd61347042cb68a41 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 2 Mar 2011 23:39:08 +0000 Subject: 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. --- source/blender/editors/space_graph/graph_edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_graph/graph_edit.c') diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index 62ce9b28484..c3a6ac7ce12 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -782,7 +782,7 @@ static int graphkeys_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUS { graphkeys_duplicate_exec(C, op); - RNA_int_set(op->ptr, "mode", TFM_TRANSLATION); + 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; -- cgit v1.2.3