69 if (adt->
action !=
nullptr) {
84 if (fcu && !fcu->rna_path().is_empty()) {
128 ID *owner_id = ale->
id;
133 if (
ELEM(
nullptr, agrp, owner_id)) {
149 Bone *bone = pchan->bone_get(*ob);
162 if (*active_agrp ==
nullptr) {
185 ID *owner_id = ale->
id;
187 Scene *scene =
reinterpret_cast<Scene *
>(owner_id);
189 Strip *strip =
nullptr;
192 char strip_name[
sizeof(strip->name)];
194 fcu->rna_path().c_str(),
"strips_all[", strip_name,
sizeof(strip_name)))
207 if (strip ==
nullptr) {
224 ID *owner_id = ale->
id;
229 if (
ELEM(
nullptr, fcu, owner_id)) {
233 if (fcu->rna_path().is_empty()) {
237 switch (
GS(owner_id->
name)) {
273 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
430 else if (
ELEM(ale.type,
441 else if (
ELEM(ale.type,
454 else if (ale.update) {
457 printf(
"%s: Unhandled animchannel updates (%d) for type=%d (%p)\n",
476 for (ale = anim_data->first(); ale; ale = ale_next) {
477 ale_next = ale->
next;
481 anim_data->clear_no_delete();
483 anim_data->free_no_destruct();
503 if (!window_region) {
514 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
518 if (!ale.adt || !ale.adt->action) {
521 dna_actions.
add(ale.adt->action);
531 for (
bAction *dna_action : dna_actions) {
Functions and classes to work with Actions.
Blender kernel action and pose functionality.
Low-level operations for grease pencil.
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
void action_deselect_keys(Action &action)
Editing * editing_get(const Scene *scene)
Strip * get_strip_by_name(ListBaseT< Strip > *seqbase, const char *name, bool recursive)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static void animchan_sync_fcurve_scene(bAnimListElem *ale)
ScrArea * CTX_wm_area(const bContext *C)
bool bool BLI_str_quoted_substr(const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxncpy)
void RNA_property_update_main(Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
PointerRNA RNA_id_pointer_create(ID *id)
void CTX_wm_window_set(bContext *C, wmWindow *win)
bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac)
static void animchan_sync_fcurve(bAnimListElem *ale)
wmWindow * CTX_wm_window(const bContext *C)
static void animchan_sync_group(bAnimContext *ac, bAnimListElem *ale, bActionGroup **active_agrp)
bScreen * BKE_workspace_active_screen_get(const WorkSpaceInstanceHook *hook) GETTER_ATTRS
@ ANIMTYPE_GREASE_PENCIL_LAYER_GROUP
@ ANIMTYPE_GREASE_PENCIL_DATABLOCK
@ ANIMTYPE_GREASE_PENCIL_LAYER
@ ANIMTYPE_FILLACT_LAYERED
@ ANIMTYPE_SPECIALDATA__UNUSED
void ANIM_animdata_update(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
AnimData * BKE_animdata_from_id(const ID *id)
void ANIM_id_update(Main *bmain, ID *id)
void DEG_id_tag_update_ex(Main *bmain, ID *id, unsigned int flags)
size_t ANIM_animdata_filter(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
@ ANIMFILTER_DATA_VISIBLE
@ ANIMFILTER_LIST_CHANNELS
void BKE_fcurve_handles_recalc(FCurve &fcu)
void DEG_id_tag_update(ID *id, unsigned int flags)
void ANIM_list_elem_update(Main *bmain, Scene *scene, bAnimListElem *ale)
void ANIM_deselect_keys_in_animation_editors(bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
static void animchan_sync_gplayer(bAnimListElem *ale)
void ANIM_sync_animchannels_to_data(const bContext *C)
void ANIM_animdata_freelist(ListBaseT< bAnimListElem > *anim_data)
ID_Type GS(const char *name)
void CTX_wm_region_set(bContext *C, ARegion *region)
void BKE_annotations_layer_frames_sort(struct bGPDlayer *gpl, bool *r_has_duplicate_frames)
bool RNA_path_resolve_property(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
ARegion * CTX_wm_region(const bContext *C)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
void action_group_colors_set_from_posebone(bActionGroup *grp, bke::PChanBoneConst pchanbone)
void sort_time_fcurve(FCurve &fcu)
void CTX_wm_area_set(bContext *C, ScrArea *area)
eAnim_Update_Flags update
ListBaseT< struct ScrArea > areabase