mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-03 10:20:10 +00:00
Merge pull request #2016 from elsid/navmesh_update_change_type
Use new change type for update object
This commit is contained in:
commit
261bbded00
@ -29,6 +29,7 @@ namespace DetourNavigator
|
|||||||
remove = 0,
|
remove = 0,
|
||||||
mixed = 1,
|
mixed = 1,
|
||||||
add = 2,
|
add = 2,
|
||||||
|
update = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
class AsyncNavMeshUpdater
|
class AsyncNavMeshUpdater
|
||||||
|
@ -46,7 +46,7 @@ namespace DetourNavigator
|
|||||||
{
|
{
|
||||||
if (!mRecastMeshManager.updateObject(id, transform, areaType))
|
if (!mRecastMeshManager.updateObject(id, transform, areaType))
|
||||||
return false;
|
return false;
|
||||||
addChangedTiles(shape, transform, ChangeType::mixed);
|
addChangedTiles(shape, transform, ChangeType::update);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user