re-added grid-rendering to the editor

rebuild grid/navMesh 3D data only if needed
This commit is contained in:
k-a-z-u
2018-07-03 10:53:03 +02:00
parent 37b3011e5d
commit 2f37baf497
9 changed files with 262 additions and 203 deletions

View File

@@ -24,6 +24,7 @@ private:
NM::NavMesh<NM::NavMeshTriangle> navMesh;
NM::NavMeshSettings settings;
Floorplan::IndoorMap* im;
int buildID = 0;
public:
@@ -65,6 +66,10 @@ public:
};
int getBuildID() const {
return buildID;
}
void rebuild(Floorplan::IndoorMap* im) {
Listener l;
@@ -77,6 +82,8 @@ public:
fac.build(im, &l);
}
buildID = rand();
}
};