mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-18 17:20:09 +00:00
Detour version change! Added user ID per off-mesh connection. Fixed off-mesh connection draw flags after using off-mesh con tool.
This commit is contained in:
@@ -53,9 +53,9 @@ OffMeshConnectionTool::~OffMeshConnectionTool()
|
||||
|
||||
void OffMeshConnectionTool::init(Sample* sample)
|
||||
{
|
||||
m_sample = sample;
|
||||
if (m_sample)
|
||||
if (m_sample != sample)
|
||||
{
|
||||
m_sample = sample;
|
||||
m_oldFlags = m_sample->getNavMeshDrawFlags();
|
||||
m_sample->setNavMeshDrawFlags(m_oldFlags & ~DU_DRAWNAVMESH_OFFMESHCONS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user