Skip to content

Commit 067c009

Browse files
committed
Add warning message when graphic not found
1 parent a3e7e6f commit 067c009

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/RunActivity/Viewer3D/Lights.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ string DefineFullTexturePath(string textureName)
158158
{
159159
if (File.Exists(Path.Combine(Path.GetDirectoryName(Car.WagFilePath), textureName)))
160160
return Path.Combine(Path.GetDirectoryName(Car.WagFilePath), textureName);
161+
Trace.TraceWarning("Could not find light graphic {0} at {1}", textureName, Path.Combine(Path.GetDirectoryName(Car.WagFilePath), textureName));
161162
if (File.Exists(Path.Combine(Viewer.ContentPath, textureName)))
162163
return Path.Combine(Viewer.ContentPath, textureName);
163164
return Path.Combine(Viewer.ContentPath, "LightGlow.png");

0 commit comments

Comments
 (0)