Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2011-03-03 02:39:08 +0300
committerJoshua Leung <aligorith@gmail.com>2011-03-03 02:39:08 +0300
commita19e9177826312d8ab60d73dd61347042cb68a41 (patch)
tree1c05df5760374c749cf47025e7bff4967ac1465f /source/blender/editors/space_graph/graph_edit.c
parent9f397b3a3d4bda2e28feb99f4a10c775e8fbbff7 (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_graph/graph_edit.c')
-rw-r--r--source/blender/editors/space_graph/graph_edit.c2
1 files changed, 1 insertions, 1 deletions
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;