Opening ytyp in project window now updating world view archetypes

This commit is contained in:
dexy
2019-12-01 17:31:44 +11:00
Unverified
parent c33a09d09f
commit 7fb07e1a27
2 changed files with 75 additions and 10 deletions
@@ -1395,17 +1395,13 @@ namespace CodeWalker.GameFiles
{
//transform interior entities into world space...
var mloa = Archetype as MloArchetype;
if (MloInstance == null)
{
MloInstance = new MloInstanceData();
}
MloInstance = new MloInstanceData();
MloInstance._Instance = new CMloInstanceDef { CEntityDef = _CEntityDef };
if (mloa != null)
{
if (!IsMlo)
{
IsMlo = true;
MloInstance._Instance = new CMloInstanceDef { CEntityDef = _CEntityDef };
List<YmapEntityDef> mloEntities = Ymap.MloEntities?.ToList() ?? new List<YmapEntityDef>();
mloEntities.Add(this);
Ymap.MloEntities = mloEntities.ToArray();