mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed loading pieces with more than 64k verts.
This commit is contained in:
parent
61006184d1
commit
73c7607ca6
1 changed files with 1 additions and 1 deletions
|
@ -1126,7 +1126,7 @@ lcMesh* lcPiecesLibrary::CreateMesh(PieceInfo* Info, lcLibraryMeshData& MeshData
|
|||
if (MergeSection.Lod)
|
||||
{
|
||||
lcuint32 BaseVertex = DstSection.Texture ? BaseTexturedVertices[LodIdx] : BaseVertices[LodIdx];
|
||||
lcLibraryMeshSection* SrcSection = MergeSection.Shared;
|
||||
lcLibraryMeshSection* SrcSection = MergeSection.Lod;
|
||||
|
||||
for (int IndexIdx = 0; IndexIdx < SrcSection->mIndices.GetSize(); IndexIdx++)
|
||||
*Index++ = BaseVertex + SrcSection->mIndices[IndexIdx];
|
||||
|
|
Loading…
Reference in a new issue