@ -7,9 +7,9 @@
namespace MWRender
{
NavMesh::NavMesh(const osg::ref_ptr<osg::Group>& root)
NavMesh::NavMesh(const osg::ref_ptr<osg::Group>& root, bool enabled)
: mRootNode(root)
, mEnabled(false)
, mEnabled(enabled)
, mRevision(0)
}
@ -16,7 +16,7 @@ namespace MWRender
class NavMesh
public:
NavMesh(const osg::ref_ptr<osg::Group>& root);
NavMesh(const osg::ref_ptr<osg::Group>& root, bool enabled);
~NavMesh();
bool toggle();
@ -234,7 +234,7 @@ namespace MWRender
mRootNode->addChild(mSceneRoot);
mNavMesh.reset(new NavMesh(mRootNode));
mNavMesh.reset(new NavMesh(mRootNode, Settings::Manager::getBool("enable render", "Navigator")));
mPathgrid.reset(new Pathgrid(mRootNode));
mObjects.reset(new Objects(mResourceSystem, sceneRoot, mUnrefQueue.get()));
@ -614,3 +614,4 @@ recast mesh path prefix =
# Write nav mesh file at path with this prefix
nav mesh path prefix =
enable render = false