Allow convertToUnIndexedMesh to support custom attributes

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. :pray:

Sounds like a fair enough request :slight_smile:

Would you be willing to do a PR for it ? would be great to provide a PG as well :slight_smile:

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. :slight_smile:
EDIT: here it is:

1 Like

You are the best @Blake

1 Like