diff options
author | Ton Roosendaal <ton@blender.org> | 2008-11-27 19:00:59 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-11-27 19:00:59 +0300 |
commit | d6aff38426a29af19230ee5badbda47ff4c0a306 (patch) | |
tree | 0decc8fd324088883835f5a06afb58af876d7be1 /source/blender/windowmanager | |
parent | 6b5c948457b3627ffd69c0a2f6aaa8105642eb75 (diff) |
Patch to allow pre-2.50 Blenders to read newer files.
Since we'll reshuffle a lot in UI code, making new Screens totally
incompatible, this patch saves the Screen chunk in Blender files
with a new identifier (ID_SCRN), causing it to be not read in old
Blender binaries. Pre-2.50 blender already has a facility to recover
from this (it keeps old UI), including for .B.blends (it opens
default simple screen)
For the latter reason, it might be advisable to have the .B.blend
for 2.50+ saved as another name? Then you can use both for while.
(Note: commit is just 3 lines of code, other files are comments I
added for documentation of other stuff)
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 061a784ea91..e4c4406b8ae 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -252,6 +252,7 @@ void wm_draw_update(bContext *C) if(win->screen->do_draw) ED_screen_draw(win); + /* regions are menus here */ for(ar=win->screen->regionbase.first; ar; ar= ar->next) { C->region= ar; @@ -519,6 +520,7 @@ void wm_event_do_handlers(bContext *C) action= wm_handlers_do(C, event, &win->handlers); + /* modal menus in Blender use (own) regions linked to screen */ if(wm_event_always_pass(event) || action==WM_HANDLER_CONTINUE) { ARegion *ar; |