mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: properly restore off-mesh connection draw flags
Instead of setting it to the old flags (undoing any changes we did while we were at the off-mesh connection tool) only set the off-mesh draw flag if it was enabled since that's the only one we disable when entering this tool.
This commit is contained in:
parent
50e0e6ec58
commit
7a963c7fb3
@ -40,7 +40,11 @@ OffMeshConnectionTool::~OffMeshConnectionTool()
|
|||||||
{
|
{
|
||||||
if (m_editor)
|
if (m_editor)
|
||||||
{
|
{
|
||||||
m_editor->setNavMeshDrawFlags(m_oldFlags);
|
if (m_oldFlags & DU_DRAWNAVMESH_OFFMESHCONS)
|
||||||
|
{
|
||||||
|
const unsigned int curFlags = m_editor->getNavMeshDrawFlags();
|
||||||
|
m_editor->setNavMeshDrawFlags(curFlags | DU_DRAWNAVMESH_OFFMESHCONS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user