From cf25b10eb5bb61662ce0db6b3ef54a3e3e73a328 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 10 Jan 2011 22:10:28 +0000 Subject: Todo #22395: Restoring Grease Pencil Editing Mode in DopeSheet Editor This commit restores some basic functionality for retiming Grease Pencil sketches. Some of the functionality that existed before still hasn't been restored (namely snap/mirror tools as well as copy+paste), though it should be possible to use this for basic retiming and sketch-frame management again. - There's still a lot of work required to get this up to the standard of the rest of the animation editor code, as some of this code was originally just hacked in based on the old-style code. - Work is already required to not have to directly access the main db global to get the list of Grease Pencil datablocks to show, but that can come along with pending cleanups of the filtering code. --- source/blender/editors/space_action/space_action.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/editors/space_action/space_action.c') diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index faeb7a68968..792f212f638 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -351,6 +351,13 @@ static void action_listener(ScrArea *sa, wmNotifier *wmn) /* context changes */ switch (wmn->category) { + case NC_SCREEN: + if (wmn->data == ND_GPENCIL) { + /* only handle this event in GPencil mode for performance considerations */ + if (saction->mode == SACTCONT_GPENCIL) + ED_area_tag_redraw(sa); + } + break; case NC_ANIMATION: /* 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)) -- cgit v1.2.3