mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 08:42:35 +00:00
Minor fixes
This commit is contained in:
@@ -351,7 +351,7 @@ namespace BSP
|
|||||||
leaf.leafBrushNode = 0;
|
leaf.leafBrushNode = 0;
|
||||||
|
|
||||||
// -1 as it uses tris
|
// -1 as it uses tris
|
||||||
leaf.terrainContents = -1;
|
leaf.terrainContents = 1;
|
||||||
if (tree->leaf->getObjectCount() > 0)
|
if (tree->leaf->getObjectCount() > 0)
|
||||||
{
|
{
|
||||||
size_t parentCount = 0;
|
size_t parentCount = 0;
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ namespace BSP
|
|||||||
assert(indexCount % 3 == 0);
|
assert(indexCount % 3 == 0);
|
||||||
gfxWorld->draw.indexCount = static_cast<int>(indexCount);
|
gfxWorld->draw.indexCount = static_cast<int>(indexCount);
|
||||||
gfxWorld->draw.indices = m_memory.Alloc<uint16_t>(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);
|
memcpy(gfxWorld->draw.indices, bsp->gfxWorld.indices.data(), sizeof(uint16_t) * indexCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user