mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2025-02-14 10:52:54 +08:00
Worked on scenario import
This commit is contained in:
parent
cda768eb22
commit
2f65546e86
@ -1692,7 +1692,16 @@ namespace CodeWalker.World
|
|||||||
{
|
{
|
||||||
if (VehicleModelSets == null) return null;
|
if (VehicleModelSets == null) return null;
|
||||||
AmbientModelSet ms;
|
AmbientModelSet ms;
|
||||||
VehicleModelSets.TryGetValue(hash, out ms);
|
if(!VehicleModelSets.TryGetValue(hash, out ms))
|
||||||
|
{
|
||||||
|
string s_hash = hash.ToString("X");
|
||||||
|
ms = new AmbientModelSet();
|
||||||
|
ms.Name = $"UNKNOWN VEHICLE MODELSET ({s_hash})";
|
||||||
|
ms.NameLower = ms.Name.ToLowerInvariant();
|
||||||
|
ms.NameHash = new MetaHash(hash);
|
||||||
|
ms.Models = new AmbientModel[] {};
|
||||||
|
VehicleModelSets.Add(hash, ms);
|
||||||
|
}
|
||||||
return ms;
|
return ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user