diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-02-05 01:33:24 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-02-05 01:33:24 +0300 |
commit | 5fc657cdc614334c9c4c29910f06ebe1a286947b (patch) | |
tree | c844690edcf8b0893252f0dab1077dfe54460e57 | |
parent | edab22d9ee1086cd98e06880644b5bbad58ddf66 (diff) |
Bugfix for 2.5 - Bugfix #18251
The patch was pasted in the wrong place, thus destroying all custom OpenGL solid light setups too.
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index ff63782bdc3..a87e22060fd 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -571,14 +571,14 @@ int WM_read_homefile(bContext *C, int from_memory) success = BKE_read_file(C, tstr, NULL, NULL); } else { success = BKE_read_file_from_memory(C, datatoc_B_blend, datatoc_B_blend_size, NULL, NULL); + + /* When loading factory settings, the reset solid OpenGL lights need to be applied. */ + U.light[0].flag=0; + U.light[1].flag=0; + U.light[2].flag=0; + GPU_default_lights(); } - /* When loading factory settings, the reset solid OpenGL lights need to be applied. */ - U.light[0].flag=0; - U.light[1].flag=0; - U.light[2].flag=0; - GPU_default_lights(); - /* match the read WM with current WM */ wm_window_match_do(C, &wmbase); wm_check(C); /* opens window(s), checks keymaps */ |