Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c12
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 bd550fc6d44..2eb1604895b 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -572,12 +572,6 @@ 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();
}
/* match the read WM with current WM */
@@ -588,6 +582,12 @@ int WM_read_homefile(bContext *C, int from_memory)
init_userdef_themes();
+ /* 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();
+
/* XXX */
G.save_over = 0; // start with save preference untitled.blend
G.fileflags &= ~G_FILE_AUTOPLAY; /* disable autoplay in .B.blend... */