mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Sanity check for gizmo drawer navmesh
This commit is contained in:
@@ -189,7 +189,10 @@ void GizmoDrawer::DrawNavMesh(Ref<Scene> scene, bool occluded)
|
||||
}
|
||||
|
||||
auto [transform, navmesh] = scene->m_Registry.get<TransformComponent, NavMeshVolumeComponent>(e);
|
||||
duDebugDrawNavMesh(&m_DebugDrawer, *navmesh.NavMeshData->GetNavMesh(), DU_DRAWNAVMESH_OFFMESHCONS);
|
||||
if (navmesh.NavMeshData && navmesh.NavMeshData->IsValid())
|
||||
{
|
||||
duDebugDrawNavMesh(&m_DebugDrawer, *navmesh.NavMeshData->GetNavMesh(), DU_DRAWNAVMESH_OFFMESHCONS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user