diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-29 01:34:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-29 01:35:04 +0400 |
commit | a91c4ac99fd4d766834a42ace4a670dfa824813b (patch) | |
tree | a14c2bd9e7d6b5d792b3db7e72f5bd0147ff1745 /source/blender/python | |
parent | 5d51de3bea3ae500446587ebfc53c297afdbed82 (diff) |
Ignore user-preferences when inserting keys from Python
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna_anim.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_rna_anim.c b/source/blender/python/intern/bpy_rna_anim.c index 3320043aeb5..ed51ba5bd1f 100644 --- a/source/blender/python/intern/bpy_rna_anim.c +++ b/source/blender/python/intern/bpy_rna_anim.c @@ -168,8 +168,13 @@ static int pyrna_struct_keyframe_parse( *cfra = CTX_data_scene(BPy_GetContext())->r.cfra; /* flag may be null (no option currently for remove keyframes e.g.). */ - if (pyoptions && options && (pyrna_set_to_enum_bitfield(keying_flag_items, pyoptions, options, error_prefix) == -1)) - return -1; + if (options) { + if (pyoptions && (pyrna_set_to_enum_bitfield(keying_flag_items, pyoptions, options, error_prefix) == -1)) { + return -1; + } + + *options |= INSERTKEY_NO_USERPREF; + } return 0; /* success */ } |