Fixed bug where distant lod lights ymap wasn't being auto added to project when a lodlight was edited in world view

This commit is contained in:
dexy 2021-11-08 03:20:06 +11:00
parent 3467ace8b0
commit 33072d44cb

View File

@ -7841,6 +7841,11 @@ namespace CodeWalker.Project
if (!YmapExistsInProject(lodlight.Ymap)) if (!YmapExistsInProject(lodlight.Ymap))
{ {
if (lodlight.DistLodLights?.Ymap != null)
{
AddYmapToProject(lodlight.DistLodLights.Ymap);
lodlight.DistLodLights.Ymap.HasChanged = true;
}
lodlight.Ymap.HasChanged = true; lodlight.Ymap.HasChanged = true;
AddYmapToProject(lodlight.Ymap); AddYmapToProject(lodlight.Ymap);
ProjectExplorer?.TrySelectLodLightTreeNode(lodlight); ProjectExplorer?.TrySelectLodLightTreeNode(lodlight);