Skip to content

Commit 5654d3c

Browse files
committed
Fix merge issues
1 parent 56aef46 commit 5654d3c

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

crates/bevy_core_pipeline/src/gizmo_2d/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use bevy_app::Plugin;
1+
use bevy_app::{IntoSystemAppConfig, Plugin};
22
use bevy_ecs::{
33
prelude::Entity,
44
query::With,
@@ -31,7 +31,7 @@ impl Plugin for Gizmo2dPlugin {
3131
render_app
3232
.init_resource::<DrawFunctions<GizmoLine2d>>()
3333
.add_system(sort_phase_system::<GizmoLine2d>)
34-
.add_system_to_schedule(ExtractSchedule, extract_gizmo_line_2d_camera_phase);
34+
.add_system(extract_gizmo_line_2d_camera_phase.in_schedule(ExtractSchedule));
3535

3636
let gizmo_node = Gizmo2dNode::new(&mut render_app.world);
3737
let mut binding = render_app.world.resource_mut::<RenderGraph>();

crates/bevy_core_pipeline/src/gizmo_3d/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::cmp::Reverse;
22

3-
use bevy_app::Plugin;
3+
use bevy_app::{IntoSystemAppConfig, Plugin};
44
use bevy_ecs::{
55
prelude::Entity,
66
query::With,
@@ -34,7 +34,7 @@ impl Plugin for Gizmo3dPlugin {
3434
render_app
3535
.init_resource::<DrawFunctions<GizmoLine3d>>()
3636
.add_system(sort_phase_system::<GizmoLine3d>)
37-
.add_system_to_schedule(ExtractSchedule, extract_gizmo_line_3d_camera_phase);
37+
.add_system(extract_gizmo_line_3d_camera_phase.in_schedule(ExtractSchedule));
3838

3939
let gizmo_node = Gizmo3dNode::new(&mut render_app.world);
4040
let mut binding = render_app.world.resource_mut::<RenderGraph>();

crates/bevy_gizmos/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::mem;
22

3-
use bevy_app::{CoreSet, Plugin};
3+
use bevy_app::{CoreSet, IntoSystemAppConfig, Plugin};
44
use bevy_asset::{load_internal_asset, Assets, Handle, HandleUntyped};
55
use bevy_core_pipeline::{
66
gizmo_2d::{Gizmo2dPlugin, GizmoLine2d},
@@ -63,7 +63,7 @@ impl Plugin for GizmoPlugin {
6363

6464
let Ok(render_app) = app.get_sub_app_mut(RenderApp) else { return; };
6565

66-
render_app.add_system_to_schedule(ExtractSchedule, extract_gizmo_data);
66+
render_app.add_system(extract_gizmo_data.in_schedule(ExtractSchedule));
6767

6868
#[cfg(feature = "bevy_sprite")]
6969
{

crates/bevy_gizmos/src/pipeline_2d.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl SpecializedMeshPipeline for GizmoPipeline2d {
6464
write_mask: ColorWrites::ALL,
6565
})],
6666
}),
67-
layout: Some(vec![self.mesh_pipeline.view_layout.clone()]),
67+
layout: vec![self.mesh_pipeline.view_layout.clone()],
6868
primitive: PrimitiveState {
6969
front_face: FrontFace::Ccw,
7070
cull_mode: None,
@@ -80,6 +80,7 @@ impl SpecializedMeshPipeline for GizmoPipeline2d {
8080
mask: !0,
8181
alpha_to_coverage_enabled: false,
8282
},
83+
push_constant_ranges: vec![],
8384
label: None,
8485
})
8586
}

crates/bevy_gizmos/src/pipeline_3d.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl SpecializedMeshPipeline for GizmoPipeline3d {
110110
write_mask: ColorWrites::ALL,
111111
})],
112112
}),
113-
layout: Some(bind_group_layout),
113+
layout: bind_group_layout,
114114
primitive: PrimitiveState {
115115
front_face: FrontFace::Ccw,
116116
cull_mode: None,
@@ -141,6 +141,7 @@ impl SpecializedMeshPipeline for GizmoPipeline3d {
141141
mask: !0,
142142
alpha_to_coverage_enabled: false,
143143
},
144+
push_constant_ranges: vec![],
144145
label: Some(label),
145146
})
146147
}

examples/3d/3d_gizmos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn setup(
2525

2626
// plane
2727
commands.spawn(PbrBundle {
28-
mesh: meshes.add(Mesh::from(shape::Plane { size: 5.0 })),
28+
mesh: meshes.add(Mesh::from(shape::Plane::from_size(5.0))),
2929
material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()),
3030
..default()
3131
});

0 commit comments

Comments
 (0)