Skip to content

Commit

Permalink
Remove check... breaks things.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Sep 29, 2024
1 parent 03202bc commit eba013d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bevy_nannou_draw/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,17 +726,6 @@ fn update_draw_mesh(
}
}
}

check_and_despawn_empty_mesh(&mut meshes, &mut mesh);
}
}

fn check_and_despawn_empty_mesh(meshes: &mut ResMut<Assets<Mesh>>, mesh: &mut Handle<Mesh>) {
if let Some(m) = meshes.get(&*mesh) {
// Remove the mesh if it has no vertices, which can happen if the user draws nothing
if !m.count_vertices() > 0 {
meshes.remove(&*mesh);
}
}
}

Expand Down

0 comments on commit eba013d

Please sign in to comment.