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:
authorCampbell Barton <ideasman42@gmail.com>2014-04-29 01:34:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-29 01:35:04 +0400
commita91c4ac99fd4d766834a42ace4a670dfa824813b (patch)
treea14c2bd9e7d6b5d792b3db7e72f5bd0147ff1745 /source/blender/python/intern/bpy_rna_anim.c
parent5d51de3bea3ae500446587ebfc53c297afdbed82 (diff)
Ignore user-preferences when inserting keys from Python
Diffstat (limited to 'source/blender/python/intern/bpy_rna_anim.c')
-rw-r--r--source/blender/python/intern/bpy_rna_anim.c9
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 */
}