Reset GL lights are reloading defaults with Ctrl-X.

GL Lights defaults are read back from the file, they just weren't applied until the next recalc call.
This commit is contained in:
Martin Poirier
2007-12-20 18:41:11 +00:00
parent 381e8b16b4
commit 1d8fdff909

View 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;
}