Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/fmodifier_ui.c
| Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | static void delete_fmodifier_cb(bContext *C, void *ctx_v, void *fcm_v) | ||||
| /* remove the given F-Modifier from the active modifier-stack */ | /* remove the given F-Modifier from the active modifier-stack */ | ||||
| remove_fmodifier(modifiers, fcm); | remove_fmodifier(modifiers, fcm); | ||||
| ED_undo_push(C, "Delete F-Curve Modifier"); | ED_undo_push(C, "Delete F-Curve Modifier"); | ||||
| /* send notifiers */ | /* send notifiers */ | ||||
| // XXX for now, this is the only way to get updates in all the right places... but would be nice to have a special one in this case | // XXX for now, this is the only way to get updates in all the right places... but would be nice to have a special one in this case | ||||
| WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | ||||
| DEG_id_tag_update(ctx->fcurve_owner_id, ID_RECALC_COPY_ON_WRITE); | DEG_id_tag_update(ctx->fcurve_owner_id, ID_RECALC_ANIMATION); | ||||
| } | } | ||||
| /* --------------- */ | /* --------------- */ | ||||
| /* draw settings for generator modifier */ | /* draw settings for generator modifier */ | ||||
| static void draw_modifier__generator(uiLayout *layout, ID *fcurve_owner_id, FModifier *fcm, short width) | static void draw_modifier__generator(uiLayout *layout, ID *fcurve_owner_id, FModifier *fcm, short width) | ||||
| { | { | ||||
| FMod_Generator *data = (FMod_Generator *)fcm->data; | FMod_Generator *data = (FMod_Generator *)fcm->data; | ||||
| ▲ Show 20 Lines • Show All 674 Lines • Show Last 20 Lines | |||||