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_filterLedgeSpans(true),
|
||||||
m_filterWalkableLowHeightSpans(true),
|
m_filterWalkableLowHeightSpans(true),
|
||||||
m_traverseRayDynamicOffset(true),
|
m_traverseRayDynamicOffset(true),
|
||||||
|
m_buildBvTree(true),
|
||||||
m_selectedNavMeshType(NAVMESH_SMALL),
|
m_selectedNavMeshType(NAVMESH_SMALL),
|
||||||
m_loadedNavMeshType(NAVMESH_SMALL),
|
m_loadedNavMeshType(NAVMESH_SMALL),
|
||||||
m_navmeshName(NavMesh_GetNameForType(NAVMESH_SMALL)),
|
m_navmeshName(NavMesh_GetNameForType(NAVMESH_SMALL)),
|
||||||
@ -369,6 +370,8 @@ void Editor::handleCommonSettings()
|
|||||||
rdVcopy(navMeshBMin, m_geom->getOriginalNavMeshBoundsMin());
|
rdVcopy(navMeshBMin, m_geom->getOriginalNavMeshBoundsMin());
|
||||||
rdVcopy(navMeshBMax, m_geom->getOriginalNavMeshBoundsMax());
|
rdVcopy(navMeshBMax, m_geom->getOriginalNavMeshBoundsMax());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::Checkbox("Build BVTree", &m_buildBvTree);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
@ -1154,7 +1154,7 @@ unsigned char* Editor_TileMesh::buildTileMesh(const int tx, const int ty, const
|
|||||||
rdVcopy(params.bmax, m_pmesh->bmax);
|
rdVcopy(params.bmax, m_pmesh->bmax);
|
||||||
params.cs = m_cfg.cs;
|
params.cs = m_cfg.cs;
|
||||||
params.ch = m_cfg.ch;
|
params.ch = m_cfg.ch;
|
||||||
params.buildBvTree = true;
|
params.buildBvTree = m_buildBvTree;
|
||||||
|
|
||||||
const bool navMeshBuildSuccess = dtCreateNavMeshData(¶ms, &navData, &navDataSize);
|
const bool navMeshBuildSuccess = dtCreateNavMeshData(¶ms, &navData, &navDataSize);
|
||||||
|
|
||||||
|
@ -266,6 +266,7 @@ protected:
|
|||||||
bool m_filterLedgeSpans;
|
bool m_filterLedgeSpans;
|
||||||
bool m_filterWalkableLowHeightSpans;
|
bool m_filterWalkableLowHeightSpans;
|
||||||
bool m_traverseRayDynamicOffset;
|
bool m_traverseRayDynamicOffset;
|
||||||
|
bool m_buildBvTree;
|
||||||
|
|
||||||
int m_minTileBits;
|
int m_minTileBits;
|
||||||
int m_maxTileBits;
|
int m_maxTileBits;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user