Skip to content

Commit 05d4dbe

Browse files
committed
Update port to rc.1.
1 parent f0905a6 commit 05d4dbe

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["gamedev", "bevy", "outline"]
1111
categories = ["game-engines", "rendering"]
1212

1313
[dependencies]
14-
bevy = { git="https://github.com/bevyengine/bevy.git", rev = "69745d40e594fb34a99507e2f0be2385711e46a6", default-features = false, features = [
14+
bevy = { version = "0.17.0-rc.1", default-features = false, features = [
1515
"std",
1616
"async_executor",
1717
"bevy_log",
@@ -33,11 +33,13 @@ reflect = []
3333
scene = ["bevy/bevy_scene"]
3434

3535
[dev-dependencies]
36-
bevy = { git="https://github.com/bevyengine/bevy.git", rev = "69745d40e594fb34a99507e2f0be2385711e46a6", default-features = false, features = [
36+
bevy = { version = "0.17.0-rc.1", default-features = false, features = [
3737
"animation",
38+
"bevy_anti_alias",
3839
"bevy_gltf",
3940
"bevy_mesh_picking_backend",
4041
"bevy_pbr",
42+
"bevy_post_process",
4143
"bevy_sprite",
4244
"bevy_state",
4345
"bevy_text",

examples/bloom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::f32::consts::{PI, TAU};
22

33
use bevy::{
4-
core_pipeline::bloom::{Bloom, BloomCompositeMode},
4+
post_process::bloom::{Bloom, BloomCompositeMode},
55
prelude::*,
66
render::view::Hdr,
77
};

examples/picking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn on_click(
122122
}
123123

124124
// Select a mesh
125-
if let Ok((entity, mut outline, selected)) = query.get_mut(event.entity()) {
125+
if let Ok((entity, mut outline, selected)) = query.get_mut(event.entity) {
126126
if let Ok(mut entity) = commands.get_entity(entity) {
127127
// When selecting multiple objects, allow clicking a selected object to deselect it.
128128
if multi_select && selected.is_some() {

examples/ui_aa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use bevy::{
2-
anti_aliasing::{
2+
anti_alias::{
33
fxaa::Fxaa,
44
smaa::{Smaa, SmaaPreset},
55
taa::TemporalAntiAliasing,

examples/ui_mode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fn interaction<T: Component + FreelyMutableState>(
259259

260260
fn change_mode(
261261
mut commands: Commands,
262-
mut reader: EventReader<StateTransitionEvent<DrawMethod>>,
262+
mut reader: MessageReader<StateTransitionEvent<DrawMethod>>,
263263
query: Query<Entity, With<TheObject>>,
264264
) {
265265
for event in reader.read() {
@@ -278,7 +278,7 @@ fn change_mode(
278278

279279
fn change_shape(
280280
mut commands: Commands,
281-
mut reader: EventReader<StateTransitionEvent<DrawShape>>,
281+
mut reader: MessageReader<StateTransitionEvent<DrawShape>>,
282282
query: Query<Entity, With<TheObject>>,
283283
shapes: Res<Shapes>,
284284
) {
@@ -293,7 +293,7 @@ fn change_shape(
293293

294294
fn change_orientation(
295295
mut commands: Commands,
296-
mut reader: EventReader<StateTransitionEvent<DrawOrientation>>,
296+
mut reader: MessageReader<StateTransitionEvent<DrawOrientation>>,
297297
query: Query<Entity, With<TheObject>>,
298298
) {
299299
for event in reader.read() {

src/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl OutlineMeshExt for Mesh {
186186

187187
fn auto_generate_outline_normals(
188188
mut meshes: ResMut<Assets<Mesh>>,
189-
mut events: EventReader<'_, '_, AssetEvent<Mesh>>,
189+
mut events: MessageReader<'_, '_, AssetEvent<Mesh>>,
190190
mut squelch: Local<HashSet<AssetId<Mesh>>>,
191191
plugin: Res<AutoGenerateOutlineNormalsPlugin>,
192192
) {

src/scene.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn add_outline(
7070
.spawn(
7171
Observer::new(
7272
move |trigger: On<SceneInstanceReady>, mut commands: Commands| {
73-
commands.run_system_with(add_outline, trigger.entity());
73+
commands.run_system_with(add_outline, trigger.entity);
7474
},
7575
)
7676
.with_entity(*entity_input),

0 commit comments

Comments
 (0)