|
|
|
@ -15,6 +15,7 @@
|
|
|
|
|
|
|
|
|
|
#include <components/esm3/esmreader.hpp>
|
|
|
|
|
#include <components/esm3/loadacti.hpp>
|
|
|
|
|
#include <components/esm3/loadcell.hpp>
|
|
|
|
|
#include <components/esm3/loadcont.hpp>
|
|
|
|
|
#include <components/esm3/loaddoor.hpp>
|
|
|
|
|
#include <components/esm3/loadstat.hpp>
|
|
|
|
@ -465,8 +466,10 @@ namespace MWRender
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::map<ESM::RefNum, ESM::CellRef> ObjectPaging::collectESM3References(
|
|
|
|
|
float size, const osg::Vec2i& startCell, ESM::ReadersCache& readers) const
|
|
|
|
|
namespace
|
|
|
|
|
{
|
|
|
|
|
std::map<ESM::RefNum, ESM::CellRef> collectESM3References(
|
|
|
|
|
float size, const osg::Vec2i& startCell, ESM::ReadersCache& readers)
|
|
|
|
|
{
|
|
|
|
|
std::map<ESM::RefNum, ESM::CellRef> refs;
|
|
|
|
|
const auto& store = MWBase::Environment::get().getWorld()->getStore();
|
|
|
|
@ -516,6 +519,7 @@ namespace MWRender
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (auto [ref, deleted] : cell->mLeasedRefs)
|
|
|
|
|
{
|
|
|
|
|
if (deleted)
|
|
|
|
@ -532,6 +536,7 @@ namespace MWRender
|
|
|
|
|
}
|
|
|
|
|
return refs;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
osg::ref_ptr<osg::Node> ObjectPaging::createChunk(float size, const osg::Vec2f& center, bool activeGrid,
|
|
|
|
|
const osg::Vec3f& viewPoint, bool compile, unsigned char lod)
|
|
|
|
|