mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 08:52:52 +08:00
Fix for crash when rendering some vehicles
This commit is contained in:
parent
96cac975f5
commit
e95df81169
@ -3490,7 +3490,7 @@ namespace CodeWalker.Rendering
|
||||
|
||||
if ((dtex == null) && (ytd2 == null))// rndbl.SDtxds.Length == 0)//texture not found..
|
||||
{
|
||||
if (drawable.ShaderGroup.TextureDictionary != null)//check any embedded texdict
|
||||
if (drawable.ShaderGroup?.TextureDictionary != null)//check any embedded texdict
|
||||
{
|
||||
dtex = drawable.ShaderGroup.TextureDictionary.Lookup(tex.NameHash);
|
||||
if (dtex != null)
|
||||
|
Loading…
Reference in New Issue
Block a user