mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-23 07:22:52 +08:00
added ped modelset fix
This commit is contained in:
parent
3030e66aae
commit
31422c4415
@ -1682,7 +1682,16 @@ namespace CodeWalker.World
|
|||||||
{
|
{
|
||||||
if (PedModelSets == null) return null;
|
if (PedModelSets == null) return null;
|
||||||
AmbientModelSet ms;
|
AmbientModelSet ms;
|
||||||
PedModelSets.TryGetValue(hash, out ms);
|
if(!PedModelSets.TryGetValue(hash, out ms))
|
||||||
|
{
|
||||||
|
string s_hash = hash.ToString("X");
|
||||||
|
ms = new AmbientModelSet();
|
||||||
|
ms.Name = $"UNKNOWN PED MODELSET ({s_hash})";
|
||||||
|
ms.NameLower = ms.Name.ToLowerInvariant();
|
||||||
|
ms.NameHash = new MetaHash(hash);
|
||||||
|
ms.Models = new AmbientModel[] { };
|
||||||
|
PedModelSets.Add(hash, ms);
|
||||||
|
}
|
||||||
return ms;
|
return ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user