Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_keyframing.h
| Show First 20 Lines • Show All 652 Lines • ▼ Show 20 Lines | bool ED_autokeyframe_object(struct bContext *C, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct Object *ob, | struct Object *ob, | ||||
| struct KeyingSet *ks); | struct KeyingSet *ks); | ||||
| bool ED_autokeyframe_pchan(struct bContext *C, | bool ED_autokeyframe_pchan(struct bContext *C, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct Object *ob, | struct Object *ob, | ||||
| struct bPoseChannel *pchan, | struct bPoseChannel *pchan, | ||||
| struct KeyingSet *ks); | struct KeyingSet *ks); | ||||
| /** | /** | ||||
| * Use for auto-key-framing from the UI. | * Use for auto-key-framing | ||||
| * \param only_if_property_keyed: if true, auto-key-framing only creates keyframes on already keyed | |||||
sergey: Can the parameter be called `only_if_property_keyed` or something like this? | |||||
| * properties. This is by design when using buttons.For other callers such as gizmos or VSE preview | |||||
sybrenUnsubmitted Not Done Inline ActionsSpace after period sybren: Space after period | |||||
| * transform, creating new animation/keyframes also on non-keyed properties is desired. | |||||
| */ | */ | ||||
| bool ED_autokeyframe_property(struct bContext *C, | bool ED_autokeyframe_property(struct bContext *C, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| PointerRNA *ptr, | PointerRNA *ptr, | ||||
| PropertyRNA *prop, | PropertyRNA *prop, | ||||
| int rnaindex, | int rnaindex, | ||||
| float cfra); | float cfra, | ||||
| bool only_if_property_keyed); | |||||
| /* Names for builtin keying sets so we don't confuse these with labels/text, | /* Names for builtin keying sets so we don't confuse these with labels/text, | ||||
| * defined in python script: `keyingsets_builtins.py`. */ | * defined in python script: `keyingsets_builtins.py`. */ | ||||
| #define ANIM_KS_LOCATION_ID "Location" | #define ANIM_KS_LOCATION_ID "Location" | ||||
| #define ANIM_KS_ROTATION_ID "Rotation" | #define ANIM_KS_ROTATION_ID "Rotation" | ||||
| #define ANIM_KS_SCALING_ID "Scaling" | #define ANIM_KS_SCALING_ID "Scaling" | ||||
| #define ANIM_KS_LOC_ROT_SCALE_ID "LocRotScale" | #define ANIM_KS_LOC_ROT_SCALE_ID "LocRotScale" | ||||
| Show All 10 Lines | |||||
Can the parameter be called only_if_property_keyed or something like this?