mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 12:39:59 +00:00
Merge branch 'fix_op_bzzt_whoopsie_2' into 'master'
Fixing another bzzt whoopsie See merge request OpenMW/openmw!1118
This commit is contained in:
commit
ee1ec53cd9
@ -65,8 +65,7 @@ public:
|
|||||||
{
|
{
|
||||||
const osg::Vec2f& center = node->getCenter();
|
const osg::Vec2f& center = node->getCenter();
|
||||||
bool activeGrid = (center.x() > mActiveGrid.x() && center.y() > mActiveGrid.y() && center.x() < mActiveGrid.z() && center.y() < mActiveGrid.w());
|
bool activeGrid = (center.x() > mActiveGrid.x() && center.y() > mActiveGrid.y() && center.x() < mActiveGrid.z() && center.y() < mActiveGrid.w());
|
||||||
if (dist > mViewDistance && !activeGrid) // for Scene<->ObjectPaging sync the activegrid must remain loaded
|
|
||||||
return StopTraversal;
|
|
||||||
if (node->getSize()>1)
|
if (node->getSize()>1)
|
||||||
{
|
{
|
||||||
float halfSize = node->getSize()/2;
|
float halfSize = node->getSize()/2;
|
||||||
@ -77,6 +76,9 @@ public:
|
|||||||
return Deeper;
|
return Deeper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dist > mViewDistance && !activeGrid) // for Scene<->ObjectPaging sync the activegrid must remain loaded
|
||||||
|
return StopTraversal;
|
||||||
|
|
||||||
int nativeLodLevel = Log2(static_cast<unsigned int>(node->getSize()/mMinSize));
|
int nativeLodLevel = Log2(static_cast<unsigned int>(node->getSize()/mMinSize));
|
||||||
int lodLevel = Log2(static_cast<unsigned int>(dist/(Constants::CellSizeInUnits*mMinSize*mFactor)));
|
int lodLevel = Log2(static_cast<unsigned int>(dist/(Constants::CellSizeInUnits*mMinSize*mFactor)));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user