Option to initially enable NavMesh render

pull/541/head
elsid 7 years ago
parent 02ce4a7e50
commit faaf50446d
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -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

Loading…
Cancel
Save