TriAxis-Games / RealtimeMeshComponent

Unreal Engine 5 plugin component for rendering runtime generated content.
https://rmc.triaxis.games/
Other
1.58k stars 412 forks source link

Fix `AdjacencyTriangles` crash #162

Closed manlok876 closed 4 years ago

manlok876 commented 4 years ago

Missed offset caused wrong indices for static meshes with 2 and more sections: consequent section vertex indices do not start with 0.

This was tested on commit 78e1cddf9065b23b8200dec5014d98e0abed5a91 and not on v4, but since the code for getting StaticMesh sections is the same I am guessing it will also fix the issue on current version.

Signed-off-by: Denis Maximenko manlok71@gmail.com

Koderz commented 4 years ago

Accepted. Thanks for the support!