From 41319eb2bf37bc7b11da453f85797466e07816ea Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 3 Nov 2018 16:41:36 +0300 Subject: [PATCH] Use new change type for update object To perform jobs for updated animated objects and doors with lowest priority. --- components/detournavigator/asyncnavmeshupdater.hpp | 1 + components/detournavigator/navmeshmanager.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/detournavigator/asyncnavmeshupdater.hpp b/components/detournavigator/asyncnavmeshupdater.hpp index c9d7b1940..39898e48e 100644 --- a/components/detournavigator/asyncnavmeshupdater.hpp +++ b/components/detournavigator/asyncnavmeshupdater.hpp @@ -29,6 +29,7 @@ namespace DetourNavigator remove = 0, mixed = 1, add = 2, + update = 3, }; class AsyncNavMeshUpdater diff --git a/components/detournavigator/navmeshmanager.cpp b/components/detournavigator/navmeshmanager.cpp index 9afe105d9..66bf39aaf 100644 --- a/components/detournavigator/navmeshmanager.cpp +++ b/components/detournavigator/navmeshmanager.cpp @@ -46,7 +46,7 @@ namespace DetourNavigator { if (!mRecastMeshManager.updateObject(id, transform, areaType)) return false; - addChangedTiles(shape, transform, ChangeType::mixed); + addChangedTiles(shape, transform, ChangeType::update); return true; }