-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrapping Mesh fields in Option<T> #71
Comments
I don't have a strong opinion on this, but if we do this, we need to figure out which ones are Optional in the spec and which ones should actually be treated as Optional. For example, why do you want vertices and faces to be Optional as well? mesh-loader/examples/kiss3d/src/main.rs Lines 118 to 136 in 8754042
mesh-loader/examples/bevy/src/main.rs Lines 226 to 258 in 8550526
|
You are right, vertices shouldn't be optional, it was my mistake. |
Wrapping Mesh fields (vertices, normals, texcoords, faces, colors) in Option would be easier to check.
For example, checking if
mesh.normals
is Some is more convenient that checking ifnormals.is_empty() && normals[0].is_empty()
.The text was updated successfully, but these errors were encountered: