im pretty new to rust and bevy but i cant seem to figure out why the function isnt getting called ```rs
fn build_sys(mut commands: Commands, asset: Res<AssetServer>, selection: Query<(Entity, &PickSelection, &Transform)>,
mouse_input: Res<Input<MouseButton>>,) {
if mouse_input.just_pressed(MouseButton::Left) {
for (entity,selection,transform) in &selection {
if selection.is_selected {
spawn_brick(&mut commands,&asset, transform.translation);
println!("spawned brick");
}
}
}
fn spawn_brick(commands: &mut Commands, assets: &AssetServer , position: Vec3) -> Entity {
let brick = assets.load("Models/brick.glb#Scene0");
commands
.spawn(SpatialBundle::from_transform(Transform::from_translation(position)))
.insert(Name::new("Brick"))
.with_children(|commands| {
commands.spawn(SceneBundle{
scene: brick.clone(),
transform: Transform::from_xyz(0.0, 0.0, 0.0),
..Default::default()
});
})
.id()
}
}```
