mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-06 08:42:35 +00:00
feat: use xmodels to calculate skinnedverts
This commit is contained in:
@@ -12,10 +12,9 @@ namespace BSP
|
||||
SkinnedVertsDef* SkinnedVertsLinker::linkSkinnedVerts(BSPData* bsp)
|
||||
{
|
||||
// Pretty sure maxSkinnedVerts relates to the max amount of xmodel skinned verts a map will have
|
||||
// But setting it to the world vertex count seems to work
|
||||
SkinnedVertsDef* skinnedVerts = m_memory.Alloc<SkinnedVertsDef>();
|
||||
skinnedVerts->name = m_memory.Dup("skinnedverts");
|
||||
skinnedVerts->maxSkinnedVerts = static_cast<unsigned int>(bsp->gfxWorld.vertices.size());
|
||||
skinnedVerts->maxSkinnedVerts = static_cast<unsigned int>(bsp->gfxWorld.xmodels.size() * 1000);
|
||||
|
||||
return skinnedVerts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user