Skip to content

Commit

Permalink
Fix face indices
Browse files Browse the repository at this point in the history
  • Loading branch information
bqqbarbhg committed Dec 27, 2024
1 parent 253e396 commit 6fd8fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn open_memory(data: &[u8], opts: OpenMemoryOpts) -> Result<Stream> {
*/

pub fn triangulate_face_vec(mut indices: &mut Vec<u32>, mesh: &Mesh, face: Face) -> u32 {
if face.num_indices <= 3 {
if face.num_indices < 3 {
indices.clear();
return 0;
}
Expand Down

0 comments on commit 6fd8fde

Please sign in to comment.