mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 06:39: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:
parent
3515c8e61a
commit
6d25d4bc13
1 changed files with 42 additions and 43 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue