mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-07 01:11:32 +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()
|
void CellStore::loadRefs()
|
||||||
{
|
{
|
||||||
assert(mCellVariant.isValid());
|
assert(mCellVariant.isValid());
|
||||||
|
std::map<ESM::RefNum, ESM::RefId> refNumToID; // used to detect refID modifications
|
||||||
|
|
||||||
if (mCellVariant.isEsm4())
|
if (mCellVariant.isEsm4())
|
||||||
{
|
{
|
||||||
|
@ -805,14 +806,12 @@ namespace MWWorld
|
||||||
}
|
}
|
||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (mCell->mContextList.empty())
|
if (mCell->mContextList.empty())
|
||||||
return; // this is a dynamically generated cell -> skipping.
|
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.
|
// Load references from all plugins that do something with this cell.
|
||||||
for (size_t i = 0; i < mCell->mContextList.size(); i++)
|
for (size_t i = 0; i < mCell->mContextList.size(); i++)
|
||||||
{
|
{
|
||||||
|
@ -851,7 +850,6 @@ namespace MWWorld
|
||||||
<< ": " << e.what();
|
<< ": " << e.what();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load moved references, from separately tracked list.
|
// Load moved references, from separately tracked list.
|
||||||
for (const auto& leasedRef : mCell->mLeasedRefs)
|
for (const auto& leasedRef : mCell->mLeasedRefs)
|
||||||
{
|
{
|
||||||
|
@ -860,6 +858,7 @@ namespace MWWorld
|
||||||
|
|
||||||
loadRef(ref, deleted, refNumToID);
|
loadRef(ref, deleted, refNumToID);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
updateMergedRefs();
|
updateMergedRefs();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue