Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/space_action.c
| Show First 20 Lines • Show All 403 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 action_listener( | static void action_listener( | ||||
| bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, const Scene *UNUSED(scene)) | bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *wmn, Scene *UNUSED(scene), | ||||
| WorkSpace *UNUSED(workspace)) | |||||
| { | { | ||||
| SpaceAction *saction = (SpaceAction *)sa->spacedata.first; | SpaceAction *saction = (SpaceAction *)sa->spacedata.first; | ||||
| /* context changes */ | /* context changes */ | ||||
| switch (wmn->category) { | switch (wmn->category) { | ||||
| case NC_GPENCIL: | case NC_GPENCIL: | ||||
| /* only handle these events in GPencil mode for performance considerations */ | /* only handle these events in GPencil mode for performance considerations */ | ||||
| if (saction->mode == SACTCONT_GPENCIL) { | if (saction->mode == SACTCONT_GPENCIL) { | ||||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||