diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-04 17:37:21 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-04 17:37:21 +0300 |
commit | 8b1bfbcfea8af306dbf42743b5f67d46159015c5 (patch) | |
tree | 8e0b3b9a2b193b679ffa0048dfacc7369481c169 /source/blender/editors/screen/area.c | |
parent | c2bc82c9fcd14bcaec14e54c867757baa45b52d6 (diff) |
Todo items:
- File Window: when opened with operator (save, load, etc), you
couldn't start a new one, causing memleaks. Now it nicely
refreshes file window for new operator.
Also means you can make CTRL+F3 screenies of filewindow now.
- CTRL+F3 screenshot had memleak on cancel.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r-- | source/blender/editors/screen/area.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index fd8afd63bb8..c482ba4a9e8 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1103,10 +1103,12 @@ void ED_area_newspace(bContext *C, ScrArea *sa, int type) /*send space change notifyer*/ WM_event_add_notifier(C, NC_SPACE|ND_SPACE_CHANGED, sa); - - ED_area_tag_redraw(sa); + ED_area_tag_refresh(sa); } + + /* also redraw when re-used */ + ED_area_tag_redraw(sa); } void ED_area_prevspace(bContext *C, ScrArea *sa) |