Skip to content

Commit

Permalink
Upgrade to bevy 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blaind committed Aug 25, 2022
1 parent 641e510 commit a7de172
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_text_mesh"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
description = "A bevy 3D text mesh generator for displaying text"
repository = "https://github.com/blaind/bevy_text_mesh"
Expand All @@ -18,15 +18,15 @@ anyhow = "1.0"
glyph_brush_layout = "0.2.3"

[dependencies.bevy]
version = "0.7.0"
version = "0.8.0"
default-features = false
features = ["render"]
features = ["render", "bevy_asset"]

[dev-dependencies]
rand = "0.8.4"

[dev-dependencies.bevy]
version = "0.7.0"
version = "0.8.0"
default-features = false
features = [
"bevy_winit",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Consider this as a preview of the plugin for gathering feedback about the API:

| bevy | bevy_text_mesh |
| ---- | -------------- |
| 0.8 | 0.3.0 |
| 0.7 | 0.2.0 |
| 0.6 | 0.1.0 |
| 0.5 | 0.0.2 |
Expand Down
2 changes: 1 addition & 1 deletion examples/3d_scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn setup(
transform: Transform::from_xyz(4.0, 8.0, 4.0),
..Default::default()
});
commands.spawn_bundle(PerspectiveCameraBundle {
commands.spawn_bundle(Camera3dBundle {
transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y),
..Default::default()
});
Expand Down
4 changes: 2 additions & 2 deletions examples/performance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ fn update_text_mesh(
}

state.text_update_count += update_count;
diagnostics.add_measurement(TEXT_MESH_UPDATES, state.text_update_count as f64);
diagnostics.add_measurement(TEXT_MESH_UPDATES, || { state.text_update_count as f64 });
}

fn rotate_camera(mut camera: Query<&mut Transform, With<Camera>>, time: Res<Time>) {
Expand Down Expand Up @@ -265,7 +265,7 @@ fn setup(
transform: Transform::from_xyz(4.0, 8.0, 4.0),
..Default::default()
});
commands.spawn_bundle(PerspectiveCameraBundle {
commands.spawn_bundle(Camera3dBundle {
transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y),
..Default::default()
});
Expand Down
2 changes: 1 addition & 1 deletion src/mesh_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub(crate) fn text_mesh(

match mesh {
Some(mesh) => {
let mesh = meshes.get_mut(mesh.clone()).unwrap();
let mesh = meshes.get_mut(mesh).unwrap();
apply_mesh(ttf2_mesh, mesh);

// TODO: handle color updates
Expand Down

0 comments on commit a7de172

Please sign in to comment.