mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: add option to disable BVTree creation
This commit is contained in:
parent
dd9493d651
commit
5aff50f8cf
@ -135,6 +135,7 @@ Editor::Editor() :
|
||||
m_filterLedgeSpans(true),
|
||||
m_filterWalkableLowHeightSpans(true),
|
||||
m_traverseRayDynamicOffset(true),
|
||||
m_buildBvTree(true),
|
||||
m_selectedNavMeshType(NAVMESH_SMALL),
|
||||
m_loadedNavMeshType(NAVMESH_SMALL),
|
||||
m_navmeshName(NavMesh_GetNameForType(NAVMESH_SMALL)),
|
||||
@ -369,6 +370,8 @@ void Editor::handleCommonSettings()
|
||||
rdVcopy(navMeshBMin, m_geom->getOriginalNavMeshBoundsMin());
|
||||
rdVcopy(navMeshBMax, m_geom->getOriginalNavMeshBoundsMax());
|
||||
}
|
||||
|
||||
ImGui::Checkbox("Build BVTree", &m_buildBvTree);
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
@ -1154,7 +1154,7 @@ unsigned char* Editor_TileMesh::buildTileMesh(const int tx, const int ty, const
|
||||
rdVcopy(params.bmax, m_pmesh->bmax);
|
||||
params.cs = m_cfg.cs;
|
||||
params.ch = m_cfg.ch;
|
||||
params.buildBvTree = true;
|
||||
params.buildBvTree = m_buildBvTree;
|
||||
|
||||
const bool navMeshBuildSuccess = dtCreateNavMeshData(¶ms, &navData, &navDataSize);
|
||||
|
||||
|
@ -266,6 +266,7 @@ protected:
|
||||
bool m_filterLedgeSpans;
|
||||
bool m_filterWalkableLowHeightSpans;
|
||||
bool m_traverseRayDynamicOffset;
|
||||
bool m_buildBvTree;
|
||||
|
||||
int m_minTileBits;
|
||||
int m_maxTileBits;
|
||||
|
Loading…
x
Reference in New Issue
Block a user