diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 15:53:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 15:53:36 +0300 |
commit | a79820d2849a6366353c7045e4fd5f161f6a70fa (patch) | |
tree | e5e721c5df13e898b10ec72668d2706eadbf5ed7 /source/blender/editors/space_nla | |
parent | 4c3899ca09fd6b8d8acb70aa28148cf348794003 (diff) |
properties were being used with wrong type functions, this resulted in bad memory access when getting int from an enum.
Diffstat (limited to 'source/blender/editors/space_nla')
-rw-r--r-- | source/blender/editors/space_nla/nla_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c index 300d38732ec..d9cd11b751f 100644 --- a/source/blender/editors/space_nla/nla_edit.c +++ b/source/blender/editors/space_nla/nla_edit.c @@ -656,7 +656,7 @@ static int nlaedit_duplicate_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED { nlaedit_duplicate_exec(C, op); - RNA_int_set(op->ptr, "mode", TFM_TRANSLATION); + RNA_enum_set(op->ptr, "mode", TFM_TRANSLATION); WM_operator_name_call(C, "TRANSFORM_OT_transform", WM_OP_INVOKE_REGION_WIN, op->ptr); return OPERATOR_FINISHED; |