Ignore user-preferences when inserting keys from Python

This commit is contained in:
Campbell Barton
2014-04-29 07:34:09 +10:00
parent 5d51de3bea
commit a91c4ac99f
4 changed files with 21 additions and 8 deletions

View File

@@ -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 */
}