mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed requiredTypes MarkUsedModules adding module that gets unreified
This commit is contained in:
parent
7e03ce86bc
commit
f6e8516fc0
1 changed files with 15 additions and 0 deletions
|
@ -3154,6 +3154,21 @@ void BfContext::Cleanup()
|
||||||
}
|
}
|
||||||
mTypeGraveyard.Clear();
|
mTypeGraveyard.Clear();
|
||||||
|
|
||||||
|
if (!mDeletingModules.IsEmpty())
|
||||||
|
{
|
||||||
|
// Clear our invalid modules in mUsedModules list
|
||||||
|
for (auto project : mSystem->mProjects)
|
||||||
|
{
|
||||||
|
for (auto itr = project->mUsedModules.begin(); itr != project->mUsedModules.end(); )
|
||||||
|
{
|
||||||
|
if ((*itr)->mIsDeleting)
|
||||||
|
itr = project->mUsedModules.Remove(itr);
|
||||||
|
else
|
||||||
|
++itr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (auto module : mDeletingModules)
|
for (auto module : mDeletingModules)
|
||||||
{
|
{
|
||||||
int idx = (int)mFinishedModuleWorkList.IndexOf(module);
|
int idx = (int)mFinishedModuleWorkList.IndexOf(module);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue