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:
authorTon Roosendaal <ton@blender.org>2009-02-04 20:56:31 +0300
committerTon Roosendaal <ton@blender.org>2009-02-04 20:56:31 +0300
commit8837d69ed3628937ce2c68f14c6e16e6ded23766 (patch)
treeca1a6c4f955bfbc4c587d069cb143114fc2c89c7 /source/blender/src/usiblender.c
parentfe1c4ecd890b3affde13a8e59d507377060266fc (diff)
Bugfix #18251
Patch from Konrad Kleine After read-home file (or restore factory settings) the opengl lights have to be reset.
Diffstat (limited to 'source/blender/src/usiblender.c')
-rw-r--r--source/blender/src/usiblender.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 16c26336b89..6a4c72d1d4b 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -668,6 +668,12 @@ int BIF_read_homefile(int from_memory)
success = BKE_read_file_from_memory(datatoc_B_blend, datatoc_B_blend_size, NULL);
/* outliner patch for 2.42 .b.blend */
outliner_242_patch();
+
+ /* 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();
}
BLI_clean(scestr);