Skip to content

Commit 8e27ef7

Browse files
authored
build!: upgrade to bevy 0.14 (#5)
1 parent c102acb commit 8e27ef7

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ documentation = "https://docs.rs/bevy_generative"
1414

1515
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1616
[dependencies]
17-
bevy = { version = "0.13.0", default-features = false, features = ["bevy_core_pipeline", "bevy_pbr", "bevy_ui"] }
17+
bevy = { version = "0.14.0", default-features = false, features = [
18+
"bevy_core_pipeline",
19+
"bevy_pbr",
20+
"bevy_ui",
21+
] }
1822
colorgrad = "0.6.2"
1923
gltf = "1.3.0"
20-
image = "0.24.7"
24+
image = "0.25"
2125
noise = { version = "0.9.0", git = "https://github.com/Razaekel/noise-rs.git" }
2226
rfd = "0.12.1"
2327
serde = "1.0.195"
@@ -34,4 +38,3 @@ opt-level = 1
3438

3539
[profile.release]
3640
lto = "thin"
37-

src/terrain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ fn generate_terrain(
171171
let mut indices: Vec<u32> = Vec::with_capacity(triangle_count);
172172
let mut colors: Vec<[f32; 4]> = Vec::with_capacity(vertices_count);
173173

174-
let rows = terrain.size[0] * terrain.resolution + 1;
175-
let cols = terrain.size[1] * terrain.resolution + 1;
174+
let rows = terrain.size[0] * terrain.resolution;
175+
let cols = terrain.size[1] * terrain.resolution;
176176
let width = terrain.size[0] as f32 + 1.0;
177177
let depth = terrain.size[1] as f32 + 1.0;
178178
for row in 0..rows {

src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn export_asset(image_buffer: ImageBuffer<Rgba<u8>, Vec<u8>>) {
2424
&image_buffer,
2525
image_buffer.width(),
2626
image_buffer.height(),
27-
color_type,
27+
color_type.into(),
2828
)
2929
.expect("Failed to write to png");
3030

0 commit comments

Comments
 (0)