Skip to content

Commit

Permalink
fix shader prefab path
Browse files Browse the repository at this point in the history
  • Loading branch information
katycat5e committed Sep 18, 2023
1 parent 930f9ba commit 19bd194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CCL.Importer/PrefabWrangler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ private static Shader EngineShader
if (!_engineShader)
{
var prefab = GetBaseType(TrainCarType.LocoShunter).prefab;
var exterior = prefab.transform.Find("shunter_ext/ext 621_exterior");
var exterior = prefab.transform.Find("LocoDE2_Body/ext 621_exterior");
var material = exterior.GetComponent<MeshRenderer>().material;
_engineShader = material.shader;
}
Expand Down

0 comments on commit 19bd194

Please sign in to comment.