Skip to content
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

Fix CI in bevy-0.13 branch #111

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn setup(
commands.spawn(Camera3dBundle::default());
commands.spawn(PointLightBundle::default());
commands.spawn(PbrBundle {
mesh: meshes.add(Mesh::from(Capsule3d::default())),
mesh: meshes.add(Capsule3d::default()),
material: materials.add(Color::rgb(1.0, 1.0, 1.0)),
transform: Transform::from_translation(RAY_DIST),
..default()
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal_deferred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn setup(
));
commands.spawn((
PbrBundle {
mesh: meshes.add(Mesh::from(Capsule3d::default())),
mesh: meshes.add(Capsule3d::default()),
material: materials.add(Color::rgb(1.0, 1.0, 1.0)),
transform: Transform::from_translation(RAY_DIST),
..default()
Expand Down
2 changes: 1 addition & 1 deletion examples/mouse_picking_deferred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn setup(
commands.spawn(PointLightBundle::default());
commands.spawn((
PbrBundle {
mesh: meshes.add(Mesh::from(Sphere::default())),
mesh: meshes.add(Sphere::default()),
material: materials.add(Color::GRAY),
transform: Transform::from_xyz(0.0, 0.0, -5.0),
..default()
Expand Down
2 changes: 1 addition & 1 deletion examples/reflecting_laser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn bounce_ray(mut ray: Ray3d, raycast: &mut Raycast, gizmos: &mut Gizmos, color:
let ray_dir = ray.direction;
// reflect the ray
let proj = (ray_dir.dot(hit.normal()) / hit.normal().dot(hit.normal())) * hit.normal();
ray.direction = (*ray_dir - 2.0 * proj).try_into().unwrap();
ray.direction = Direction3d::new(*ray_dir - 2.0 * proj).unwrap();
ray.origin = hit.position() + ray.direction * 1e-6;
} else {
break;
Expand Down
2 changes: 1 addition & 1 deletion examples/simplified_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn manage_simplified_mesh(
if let Ok(mut text) = status_query.get_single_mut() {
if simplified_mesh.is_none() {
commands.entity(entity).insert(SimplifiedMesh {
mesh: meshes.add(Mesh::from(Sphere::default())),
mesh: meshes.add(Sphere::default()),
});
text.sections[1].value = "ON".to_string();
text.sections[1].style.color = Color::GREEN;
Expand Down
2 changes: 1 addition & 1 deletion src/immediate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ type MeshFilter = With<Handle<Mesh>>;
/// # use bevy::prelude::*;
/// # #[derive(Component)]
/// # struct Foo;
/// fn raycast_system(mut raycast: Raycast, foo_query: Query<With<Foo>>) {
/// fn raycast_system(mut raycast: Raycast, foo_query: Query<(), With<Foo>>) {
/// let ray = Ray3d::new(Vec3::ZERO, Vec3::X);
///
/// // Only raycast against entities with the `Foo` component.
Expand Down
Loading