diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-16 21:17:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-16 21:17:33 +0400 |
commit | 0861f59ecfbcd7d7997a7971c0ca740c18832b6b (patch) | |
tree | 25b6a1cc679a2b78408b729d279813e1d35419ed /source/blender/windowmanager | |
parent | dc3ca6dcdad25529b314bfbdaae72f7aff850edf (diff) |
- finished RNA renaming for review
- fix warning
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 45c851a5598..4d4e399a1c7 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -214,11 +214,13 @@ int WM_init_game(bContext *C) ScrArea *sa; ARegion *ar; - Main *main = CTX_data_main(C); Scene *scene= CTX_data_scene(C); - if (!scene) - scene= main->scene.first; + if (!scene) { + // XXX, this should not be needed. + Main *bmain = CTX_data_main(C); + scene= bmain->scene.first; + } win = wm->windows.first; |