Removed unnecessary navMeshDrawFlags accessors

This commit is contained in:
Graham Pentheny
2025-07-22 00:43:38 -04:00
parent 425687913e
commit 442c77f653
3 changed files with 5 additions and 8 deletions

View File

@@ -44,8 +44,8 @@ void OffMeshConnectionTool::init(Sample* newSample)
if (sample != newSample)
{
sample = newSample;
oldFlags = sample->getNavMeshDrawFlags();
sample->setNavMeshDrawFlags(oldFlags & ~DU_DRAWNAVMESH_OFFMESHCONS);
oldFlags = sample->navMeshDrawFlags;
sample->navMeshDrawFlags &= ~DU_DRAWNAVMESH_OFFMESHCONS;
}
}