Reset GL lights are reloading defaults with Ctrl-X.
authorMartin Poirier <theeth@yahoo.com>
Thu, 20 Dec 2007 18:41:11 +0000 (18:41 +0000)
committerMartin Poirier <theeth@yahoo.com>
Thu, 20 Dec 2007 18:41:11 +0000 (18:41 +0000)
GL Lights defaults are read back from the file, they just weren't applied until the next recalc call.

source/blender/src/toets.c

index ad7c1b4069bd4ad4fbe4bc8c0e8c722bc7efb0d2..53bbfb3fb699843f16434710afc5e93e06553991 100644 (file)
@@ -948,6 +948,11 @@ int blenderqread(unsigned short event, short val)
                        if(G.qual==LR_CTRLKEY) {
                                if(okee("Erase all")) {
                                        if( BIF_read_homefile(0)==0) error("No file ~/.B.blend");
+                                       
+                                       /* Reset lights
+                                        * This isn't done when reading userdef, do it now
+                                        *  */
+                                       default_gl_light(); 
                                }
                                return 0;
                        }