Ignore user-preferences when inserting keys from Python
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user