Revision: 18811
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18811
Author:   ton
Date:     2009-02-04 18:56:31 +0100 (Wed, 04 Feb 2009)

Log Message:
-----------
Bugfix #18251

Patch from Konrad Kleine

After read-home file (or restore factory settings) the opengl
lights have to be reset.

Modified Paths:
--------------
    trunk/blender/source/blender/src/usiblender.c

Modified: trunk/blender/source/blender/src/usiblender.c
===================================================================
--- trunk/blender/source/blender/src/usiblender.c       2009-02-04 17:40:50 UTC 
(rev 18810)
+++ trunk/blender/source/blender/src/usiblender.c       2009-02-04 17:56:31 UTC 
(rev 18811)
@@ -668,6 +668,12 @@
                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);


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to