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

@@ -26,6 +26,8 @@ private:
Grid<MyNode> grid;
Floorplan::IndoorMap* im;
int buildID = 0;
public:
GridModel() : grid(gridSize_cm) {
@@ -78,6 +80,10 @@ public:
};
int getBuildID() const {
return buildID;
}
void rebuild(Floorplan::IndoorMap* im) {
Listener l;
@@ -88,6 +94,8 @@ public:
Importance::addImportance(grid, &l);
//Importance::addImportance(grid, 400);
buildID = rand();
}
};