2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 16:52:35 +00:00

Minor fixes

This commit is contained in:
LJW-Dev
2026-02-12 17:26:39 +08:00
committed by Jan Laupetin
parent b4a269261e
commit 7b89b9034d
2 changed files with 2 additions and 1 deletions
@@ -351,7 +351,7 @@ namespace BSP
leaf.leafBrushNode = 0;
// -1 as it uses tris
leaf.terrainContents = -1;
leaf.terrainContents = 1;
if (tree->leaf->getObjectCount() > 0)
{
size_t parentCount = 0;
@@ -44,6 +44,7 @@ namespace BSP
assert(indexCount % 3 == 0);
gfxWorld->draw.indexCount = static_cast<int>(indexCount);
gfxWorld->draw.indices = m_memory.Alloc<uint16_t>(indexCount);
static_assert(sizeof(bsp->gfxWorld.indices.data()[0]) == sizeof(uint16_t));
memcpy(gfxWorld->draw.indices, bsp->gfxWorld.indices.data(), sizeof(uint16_t) * indexCount);
}