jkvargas / russimp

Assimp bindings for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mesh colors is incorrect

rmccampbell opened this issue · comments

I think your definition of colors on the Mesh type is incorrect, it should be a vec of vecs, like texture_coords. Also I believe the texture coords, while it technically works, can be made a Vec<Vec<Vector3D>> instead of Vec<Option<Vec<Vector3D>>>. As far as I can tell both mTextureCoords and mColors on aiMesh are defined to end at the first null pointer, so basically you can just discard any null pointer and the rest of the array.

Hey mate, thanks for the tip.
I'll double check it between today and tomorrow and I'll come back to you.
😁

Hey bud, sorry for the very late response.
I believe you are correct.
I was trying to get confirmation on assimp/assimp#4460