From e9e89ecfc3d7f1b29f58fc9d18e981853bef0bda Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Thu, 14 Jan 2010 19:53:26 +0000 Subject: [#20672] TimeLine (arrows will not proceed animation) RNA notifiers don't have a window and didn't get picked up correctly by the animation redraw system. If there's no window defined in a scene notifier, handle it anyway if the scene matches (or if there aren't any). --- source/blender/windowmanager/intern/wm_event_system.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 456f0b62a30..775d8c2b4ab 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -187,7 +187,10 @@ void wm_event_do_notifiers(bContext *C) printf("screen delete %p\n", note->reference); } } - else if(note->category==NC_SCENE) { + } + + if(note->window==win || (note->window == NULL && (note->reference == NULL || note->reference == CTX_data_scene(C)))) { + if(note->category==NC_SCENE) { if(note->data==ND_SCENEBROWSE) { ED_screen_set_scene(C, note->reference); // XXX hrms, think this over! if(G.f & G_DEBUG) -- cgit v1.2.3