Skip to content

Commit 48f1939

Browse files
CsantucciSteelFill
andauthored
Update Source/RunActivity/Viewer3D/Lights.cs
Co-authored-by: Phillip Schlichting <73207352+SteelFill@users.noreply.github.com>
1 parent ef9b55d commit 48f1939

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/RunActivity/Viewer3D/Lights.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ public LightViewer(Viewer viewer, TrainCar car, TrainCarViewer carViewer)
105105
LightPrimitives.Add(new LightGlowPrimitive(this, Viewer.RenderProcess, light));
106106
if (light.Graphic != null)
107107
(LightPrimitives.Last() as LightGlowPrimitive).SpecificGlowMaterial = viewer.MaterialManager.Load("LightGlow", DefineFullTexturePath(light.Graphic));
108+
else
109+
(LightPrimitives.Last() as LightGlowPrimitive).SpecificGlowMaterial = LightGlowMaterial;
108110
break;
109111
case LightType.Cone:
110112
LightPrimitives.Add(new LightConePrimitive(this, Viewer.RenderProcess, light));

0 commit comments

Comments
 (0)