re-added grid-rendering to the editor
rebuild grid/navMesh 3D data only if needed
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user