mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 17:02:53 +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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user