Adjust code for Bevy 0.14 -> 0.16 upgrade

Now the program builds again.
This commit is contained in:
2025-08-20 14:06:01 -05:00
parent feeeb15d22
commit e85114c4c8
2 changed files with 17 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
use bevy::{prelude::*, sprite::MaterialMesh2dBundle, window::PrimaryWindow};
use bevy::{prelude::*, window::PrimaryWindow};
use bevy_spatial::{kdtree::KDTree2, SpatialAccess};
use crate::birdoids_plugin::{
@@ -22,13 +22,10 @@ fn setup(
) {
commands.spawn((
ScannerWidget::default(),
MaterialMesh2dBundle {
mesh: meshes
Mesh2d(meshes
.add(Annulus::new(SCANRADIUS - 1.0, SCANRADIUS))
.into(),
material: materials.add(Color::srgb(0.0, 0.0, 0.0)),
..default()
},
),
MeshMaterial2d(materials.add(Color::srgb(0.0, 0.0, 0.0))),
));
}