Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-01-06 13:30:34 +0300
committerTon Roosendaal <ton@blender.org>2009-01-06 13:30:34 +0300
commit745d895a8559b77e12a441df9bb59f4bf1b039f6 (patch)
tree207b44a0efa09349f4c803f3867b664344551a1d /source/blender/windowmanager
parente01b5a02527df0da53963c5c398cff8c365d0879 (diff)
2.5
Bugfix: the area level Refresh callback was not getting Context set, it was NULLed still. This fix allows bone selecting and seeing updates in the action editor. Not other way around though, will investigate.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 843137cbec1..eb5a1449f36 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -177,21 +177,26 @@ void wm_event_do_notifiers(bContext *C)
ED_region_do_listen(ar, note);
}
}
-
- CTX_wm_window_set(C, NULL);
}
+ CTX_wm_window_set(C, NULL);
+
MEM_freeN(note);
}
/* cached: editor refresh callbacks now, they get context */
for(win= wm->windows.first; win; win= win->next) {
ScrArea *sa;
+ CTX_wm_window_set(C, win);
for(sa= win->screen->areabase.first; sa; sa= sa->next) {
- if(sa->do_refresh)
+ if(sa->do_refresh) {
+ CTX_wm_area_set(C, sa);
ED_area_do_refresh(C, sa);
+ }
}
+ CTX_wm_area_set(C, NULL);
}
+ CTX_wm_window_set(C, NULL);
}
/* mark area-regions to redraw if overlapped with rect */