diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-22 14:02:02 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-22 14:02:02 +0400 |
commit | 617711f7bf01e9846d97c6dc748606b8a207760f (patch) | |
tree | f792d313435c0d845048b13f94caed021ca272dc /source/blender/windowmanager | |
parent | 9ded4bcc13e92483d1ddfeafa3a2aacccd3d3a23 (diff) |
Attempt to fix black 3d view with texture paint + overlap draw mode.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_draw.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index 899c7728af9..7c0d0d0514c 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -189,6 +189,12 @@ static void wm_method_draw_overlap_all(bContext *C, wmWindow *win, int exchange) ARegion *ar; static rcti rect= {0, 0, 0, 0}; + /* back needs to be ok for swap, if not, mark for redraw */ + for(sa= screen->areabase.first; sa; sa= sa->next) + for(ar= sa->regionbase.first; ar; ar= ar->next) + if(ar->swinid && !(ar->swap & WIN_BACK_OK)) + ar->do_draw= RGN_DRAW; + /* flush overlapping regions */ if(screen->regionbase.first) { /* flush redraws of area regions up to overlapping regions */ |