diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 78cb3b8f..42f4792a 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -173,7 +173,7 @@ public: virtual void render(); virtual void renderOverlay(double* proj, double* model, int* view); virtual void handleMeshChanged(InputGeom* geom); - virtual bool handleBuild(); + virtual bool build(); virtual void update(float dt); virtual void collectSettings(struct BuildSettings& settings); diff --git a/RecastDemo/Include/Sample_SoloMesh.h b/RecastDemo/Include/Sample_SoloMesh.h index bafa3eaf..e95c5ae6 100644 --- a/RecastDemo/Include/Sample_SoloMesh.h +++ b/RecastDemo/Include/Sample_SoloMesh.h @@ -77,7 +77,7 @@ public: void render() override; void renderOverlay(double* proj, double* model, int* view) override; void handleMeshChanged(InputGeom* geom) override; - bool handleBuild() override; + bool build() override; private: void UI_DrawModeOption(DrawMode drawMode, bool enabled); diff --git a/RecastDemo/Include/Sample_TempObstacles.h b/RecastDemo/Include/Sample_TempObstacles.h index fc49b9ed..69d8ddae 100644 --- a/RecastDemo/Include/Sample_TempObstacles.h +++ b/RecastDemo/Include/Sample_TempObstacles.h @@ -74,7 +74,7 @@ public: void render() override; void renderOverlay(double* proj, double* model, int* view) override; void handleMeshChanged(InputGeom* geom) override; - bool handleBuild() override; + bool build() override; void update(float dt) override; void getTilePos(const float* pos, int& tx, int& ty); diff --git a/RecastDemo/Include/Sample_TileMesh.h b/RecastDemo/Include/Sample_TileMesh.h index 7222b83e..4fff8b22 100644 --- a/RecastDemo/Include/Sample_TileMesh.h +++ b/RecastDemo/Include/Sample_TileMesh.h @@ -94,7 +94,7 @@ public: void render() override; void renderOverlay(double* proj, double* model, int* view) override; void handleMeshChanged(InputGeom* geom) override; - bool handleBuild() override; + bool build() override; void collectSettings(BuildSettings& settings) override; void getTilePos(const float* pos, int& outTileX, int& outTileY) const; diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index 3af41478..d0950a10 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -286,7 +286,7 @@ void Sample::handleStep() } } -bool Sample::handleBuild() +bool Sample::build() { return true; } diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 3756f305..fe1df543 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -352,7 +352,7 @@ void Sample_SoloMesh::handleMeshChanged(InputGeom* geom) initToolStates(this); } -bool Sample_SoloMesh::handleBuild() +bool Sample_SoloMesh::build() { if (!inputGeometry || inputGeometry->verts.empty()) { diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 682d17c8..e662b1f9 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -1306,7 +1306,7 @@ void Sample_TempObstacles::clearAllTempObstacles() const } } -bool Sample_TempObstacles::handleBuild() +bool Sample_TempObstacles::build() { dtStatus status; diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index a379c262..1c10f4ea 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -587,7 +587,7 @@ void Sample_TileMesh::handleMeshChanged(InputGeom* geom) initToolStates(this); } -bool Sample_TileMesh::handleBuild() +bool Sample_TileMesh::build() { if (!inputGeometry || inputGeometry->getVertCount() == 0) { diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index 9cfbdf7c..68cb5a7f 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -678,7 +678,7 @@ int main(int /*argc*/, char** /*argv*/) if (ImGui::Button("Build")) { app.buildContext.resetLog(); - if (!app.sample->handleBuild()) + if (!app.sample->build()) { app.showLog = true; app.logScroll = 0; @@ -865,7 +865,7 @@ int main(int /*argc*/, char** /*argv*/) app.sample->handleSettings(); app.buildContext.resetLog(); - if (!app.sample->handleBuild()) + if (!app.sample->build()) { app.buildContext.dumpLog("Build log %s:", app.meshName.c_str()); }