Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/space_graph.c
| Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | default: | ||||
| if (wmn->data == ND_KEYS) | if (wmn->data == ND_KEYS) | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| /* editor level listener */ | /* editor level listener */ | ||||
| static void graph_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, const Scene *UNUSED(scene)) | static void graph_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, const Scene *UNUSED(scene), | ||||
| const WorkSpace *UNUSED(workspace)) | |||||
| { | { | ||||
| SpaceIpo *sipo = (SpaceIpo *)sa->spacedata.first; | SpaceIpo *sipo = (SpaceIpo *)sa->spacedata.first; | ||||
| /* context changes */ | /* context changes */ | ||||
| switch (wmn->category) { | switch (wmn->category) { | ||||
| case NC_ANIMATION: | case NC_ANIMATION: | ||||
| /* for selection changes of animation data, we can just redraw... otherwise autocolor might need to be done again */ | /* for selection changes of animation data, we can just redraw... otherwise autocolor might need to be done again */ | ||||
| if (ELEM(wmn->data, ND_KEYFRAME, ND_ANIMCHAN) && (wmn->action == NA_SELECTED)) | if (ELEM(wmn->data, ND_KEYFRAME, ND_ANIMCHAN) && (wmn->action == NA_SELECTED)) | ||||
| ▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines | |||||