convertToUnIndexedMesh doesn’t work on meshes that have custom attributes set on them because it calls setVerticesData without passing the stride, which then leads to an error being thrown. But it seems the stride of the vertex buffer is already known and could be passed to setVerticesData to allow convertToUnIndexedMesh to support custom attributes.
Sounds like a fair enough request
Would you be willing to do a PR for it ? would be great to provide a PG as well
Okay here’s a simple test PG that just adds a custom attribute to a box mesh and then calls convertToUnIndexedMesh which leads to the error.
And will make a little PR for it too then.
EDIT: here it is:
You are the best @Blake