Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/keyingsets.c
| Show First 20 Lines • Show All 1,043 Lines • ▼ Show 20 Lines | switch (GS(ksp->id->name)) { | ||||
| { | { | ||||
| Object *ob = (Object *)ksp->id; | Object *ob = (Object *)ksp->id; | ||||
| // XXX: only object transforms? | // XXX: only object transforms? | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY); | ||||
| break; | break; | ||||
| } | } | ||||
| default: | default: | ||||
| DEG_id_tag_update(ksp->id, ID_RECALC_COPY_ON_WRITE); | DEG_id_tag_update(ksp->id, ID_RECALC_ANIMATION_NO_FLUSH); | ||||
| break; | break; | ||||
| } | } | ||||
| /* send notifiers for updates (this doesn't require context to work!) */ | /* send notifiers for updates (this doesn't require context to work!) */ | ||||
| WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_ADDED, NULL); | WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_ADDED, NULL); | ||||
| } | } | ||||
| BKE_animsys_free_nla_keyframing_context_cache(&nla_cache); | BKE_animsys_free_nla_keyframing_context_cache(&nla_cache); | ||||
| /* return the number of channels successfully affected */ | /* return the number of channels successfully affected */ | ||||
| return success; | return success; | ||||
| } | } | ||||
| /* ************************************************** */ | /* ************************************************** */ | ||||