Auto update room portal counts when adding/editing portals

This commit is contained in:
dexy
2021-11-08 23:43:47 +11:00
Unverified
parent 8ac37258c3
commit 958c6def5b
2 changed files with 28 additions and 0 deletions
@@ -103,6 +103,7 @@ namespace CodeWalker.Project.Panels
if (CurrentPortal._Data.roomFrom != u)
{
CurrentPortal._Data.roomFrom = u;
CurrentPortal.OwnerMlo?.UpdatePortalCounts();
ProjectForm.SetYtypHasChanged(true);
}
}
@@ -123,6 +124,7 @@ namespace CodeWalker.Project.Panels
if (CurrentPortal._Data.roomTo != u)
{
CurrentPortal._Data.roomTo = u;
CurrentPortal.OwnerMlo?.UpdatePortalCounts();
ProjectForm.SetYtypHasChanged(true);
}
}