Skip to content

Commit

Permalink
Dynamic light is enabled whatever Direct Lighting is set to
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed Sep 2, 2013
1 parent ccd71bb commit 5ef406b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Gui/MainWindowHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void MainWindow::LoadPrefs() {
directLightSelect->add("High");
directLightSelect->add("Custom");

if((!r_mapSoftShadow) && (!r_dlights) && (!r_modelShadows) && (!r_fogShadow)){
if((!r_mapSoftShadow) && (r_dlights) && (!r_modelShadows) && (!r_fogShadow)){
directLightSelect->value(0);
}else if((!r_mapSoftShadow) && (r_dlights) && (r_modelShadows) && (!r_fogShadow)){
directLightSelect->value(1);
Expand Down Expand Up @@ -619,7 +619,7 @@ void MainWindow::SavePrefs() {
switch(directLightSelect->value()){
case 0:
r_modelShadows = 0;
r_dlights = 0;
r_dlights = 1;
r_mapSoftShadow = 0;
r_fogShadow = 0;
break;
Expand Down

0 comments on commit 5ef406b

Please sign in to comment.