diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-12-20 21:41:11 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-12-20 21:41:11 +0300 |
commit | 1d8fdff9094b5adadd08dd0fad9265d28d89bdd7 (patch) | |
tree | 40305f069d1170afb7d74a3a5c6f72c4af8cd51d /source/blender/src | |
parent | 381e8b16b4e1ae4c1d4118bf2a76882a2ad7fc18 (diff) |
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.
Diffstat (limited to 'source/blender/src')
-rw-r--r-- | source/blender/src/toets.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index ad7c1b4069b..53bbfb3fb69 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -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; } |