Skip to content

Commit

Permalink
Add warning message when graphic not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Csantucci committed Nov 30, 2024
1 parent a3e7e6f commit 067c009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/RunActivity/Viewer3D/Lights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ string DefineFullTexturePath(string textureName)
{
if (File.Exists(Path.Combine(Path.GetDirectoryName(Car.WagFilePath), textureName)))
return Path.Combine(Path.GetDirectoryName(Car.WagFilePath), textureName);
Trace.TraceWarning("Could not find light graphic {0} at {1}", textureName, Path.Combine(Path.GetDirectoryName(Car.WagFilePath), textureName));
if (File.Exists(Path.Combine(Viewer.ContentPath, textureName)))
return Path.Combine(Viewer.ContentPath, textureName);
return Path.Combine(Viewer.ContentPath, "LightGlow.png");
Expand Down

0 comments on commit 067c009

Please sign in to comment.