|
|
|
@ -556,7 +556,7 @@ namespace MWWorld
|
|
|
|
|
.getExterior(playerCellX, playerCellY)
|
|
|
|
|
->getCell()
|
|
|
|
|
->getWorldSpace()
|
|
|
|
|
.getRefIdString()),
|
|
|
|
|
.serializeText()),
|
|
|
|
|
navigatorUpdateGuard.get());
|
|
|
|
|
mNavigator.updateBounds(pos, navigatorUpdateGuard.get());
|
|
|
|
|
|
|
|
|
@ -677,8 +677,8 @@ namespace MWWorld
|
|
|
|
|
"Testing exterior cells (" + std::to_string(i) + "/" + std::to_string(cells.getExtSize()) + ")...");
|
|
|
|
|
|
|
|
|
|
CellStore* cell = mWorld.getWorldModel().getExterior(it->mData.mX, it->mData.mY);
|
|
|
|
|
mNavigator.setWorldspace(
|
|
|
|
|
Misc::StringUtils::lowerCase(cell->getCell()->getWorldSpace().toString()), navigatorUpdateGuard.get());
|
|
|
|
|
mNavigator.setWorldspace(Misc::StringUtils::lowerCase(cell->getCell()->getWorldSpace().serializeText()),
|
|
|
|
|
navigatorUpdateGuard.get());
|
|
|
|
|
const osg::Vec3f position
|
|
|
|
|
= osg::Vec3f(it->mData.mX + 0.5f, it->mData.mY + 0.5f, 0) * Constants::CellSizeInUnits;
|
|
|
|
|
mNavigator.updateBounds(position, navigatorUpdateGuard.get());
|
|
|
|
@ -735,8 +735,8 @@ namespace MWWorld
|
|
|
|
|
"Testing interior cells (" + std::to_string(i) + "/" + std::to_string(cells.getIntSize()) + ")...");
|
|
|
|
|
|
|
|
|
|
CellStore* cell = mWorld.getWorldModel().getInterior(it->mName);
|
|
|
|
|
mNavigator.setWorldspace(
|
|
|
|
|
Misc::StringUtils::lowerCase(cell->getCell()->getWorldSpace().toString()), navigatorUpdateGuard.get());
|
|
|
|
|
mNavigator.setWorldspace(Misc::StringUtils::lowerCase(cell->getCell()->getWorldSpace().serializeText()),
|
|
|
|
|
navigatorUpdateGuard.get());
|
|
|
|
|
ESM::Position position;
|
|
|
|
|
mWorld.findInteriorPosition(it->mName, position);
|
|
|
|
|
mNavigator.updateBounds(position.asVec3(), navigatorUpdateGuard.get());
|
|
|
|
@ -892,7 +892,7 @@ namespace MWWorld
|
|
|
|
|
loadingListener->setProgressRange(cell->count());
|
|
|
|
|
|
|
|
|
|
mNavigator.setWorldspace(
|
|
|
|
|
Misc::StringUtils::lowerCase(cell->getCell()->getWorldSpace().toString()), navigatorUpdateGuard.get());
|
|
|
|
|
Misc::StringUtils::lowerCase(cell->getCell()->getWorldSpace().serializeText()), navigatorUpdateGuard.get());
|
|
|
|
|
mNavigator.updateBounds(position.asVec3(), navigatorUpdateGuard.get());
|
|
|
|
|
|
|
|
|
|
// Load cell.
|
|
|
|
|