1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 07:09:42 +00:00

It loads cells and palce sstatics in them

Many missing meshes, no lights etc... But can coc into interior cells and see them.
This commit is contained in:
florent.teppe 2023-01-24 23:17:04 +01:00
parent 3515c8e61a
commit 6d25d4bc13

View file

@ -790,6 +790,7 @@ namespace MWWorld
void CellStore::loadRefs()
{
assert(mCellVariant.isValid());
std::map<ESM::RefNum, ESM::RefId> refNumToID; // used to detect refID modifications
if (mCellVariant.isEsm4())
{
@ -805,14 +806,12 @@ namespace MWWorld
}
++it;
}
return;
}
else
{
if (mCell->mContextList.empty())
return; // this is a dynamically generated cell -> skipping.
std::map<ESM::RefNum, ESM::RefId> refNumToID; // used to detect refID modifications
// Load references from all plugins that do something with this cell.
for (size_t i = 0; i < mCell->mContextList.size(); i++)
{
@ -851,7 +850,6 @@ namespace MWWorld
<< ": " << e.what();
}
}
// Load moved references, from separately tracked list.
for (const auto& leasedRef : mCell->mLeasedRefs)
{
@ -860,6 +858,7 @@ namespace MWWorld
loadRef(ref, deleted, refNumToID);
}
}
updateMergedRefs();
}