Skip to content

Commit 3539862

Browse files
committed
Fix once more
1 parent 3cba5d6 commit 3539862

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Source/RunActivity/Viewer3D/RenderFrame.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,9 @@ public void Clear()
534534
NumLights = 0;
535535
}
536536

537-
bool lastLightState;
538-
double fadeStartTimer;
539-
float fadeDuration = -1;
537+
static bool lastLightState;
538+
static double fadeStartTimer;
539+
static float fadeDuration = -1;
540540

541541
public void PrepareFrame(Viewer viewer)
542542
{
@@ -583,11 +583,6 @@ public void PrepareFrame(Viewer viewer)
583583
}
584584
lastLightState = lightState;
585585
}
586-
else
587-
{
588-
fadeStartTimer = 0;
589-
fadeDuration = 0;
590-
}
591586
if (SolarDirection.Y <= -0.05)
592587
{
593588
clampValue = 1; // at nighttime max headlight

0 commit comments

Comments
 (0)