From cdce8220d8778d1fc90b92641e5102ba5740a00f Mon Sep 17 00:00:00 2001 From: Torstein Grindvik <52322338+torsteingrindvik@users.noreply.github.com> Date: Sun, 13 Nov 2022 11:55:22 +0100 Subject: [PATCH] V0.9.0 bevy prep (#65) - Set Bevy version - Set our version - Update compatibility table - Clippy - Minor bugfix of flip not checking passthrough Signed-off-by: Torstein Grindvik --- Cargo.toml | 10 +++++----- README.md | 2 +- examples/wave/main.rs | 2 +- src/image/flip.rs | 9 +++++++-- src/image/lut/mod.rs | 2 +- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 45ef8d2..896718e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "bevy-vfx-bag" -version = "0.1.0-dev" +version = "0.1.0" edition = "2021" +description = "An assorted bag of visual effects for Bevy" categories = ["graphics", "game-development", "rendering"] keywords = [ "vfx", @@ -17,8 +18,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/torsteingrindvik/bevy-vfx-bag" -# TODO: Figure this out before release -# exclude = [] +exclude = [".github/", "scripts/"] [features] # For local development. @@ -33,7 +33,7 @@ dev = [] # "tga", # ] } -bevy = { git = "https://github.com/bevyengine/bevy", default-features = false, features = [ +bevy = { version = "0.9.0", default-features = false, features = [ "bevy_asset", "render", "png", @@ -45,7 +45,7 @@ bevy = { git = "https://github.com/bevyengine/bevy", default-features = false, f alsa = "=0.6.0" [dev-dependencies] -bevy = { git = "https://github.com/bevyengine/bevy", features = ["tga"] } +bevy = { version = "0.9.0", features = ["tga"] } # bevy = { path = "../bevy", features = ["tga"] } color-eyre = "0.6" diff --git a/README.md b/README.md index 4742517..f194a48 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ following table: |bevy-vfx-bag|bevy| |---|---| -|0.1 (unreleased)|0.9 (unreleased)| +|0.1.0|0.9.0| ## Getting started diff --git a/examples/wave/main.rs b/examples/wave/main.rs index 20d0b71..6493350 100644 --- a/examples/wave/main.rs +++ b/examples/wave/main.rs @@ -118,7 +118,7 @@ fn update( let num_presets = presets.0.len() as isize; *preset_index = preset_index.clamp(0, num_presets - 1); - let preset = (*presets).0[*preset_index as usize]; + let preset = presets.0[*preset_index as usize]; *wave = preset.into(); diff --git a/src/image/flip.rs b/src/image/flip.rs index 34dbc7a..e02a75b 100644 --- a/src/image/flip.rs +++ b/src/image/flip.rs @@ -128,13 +128,18 @@ impl FromWorld for FlipMaterial { } } -fn update_flip(mut flip_materials: ResMut>, flip: Res) { - if !flip.is_changed() { +fn update_flip( + mut flip_materials: ResMut>, + passthrough: Res, + flip: Res, +) { + if !flip.is_changed() && !passthrough.is_changed() { return; } for (_, material) in flip_materials.iter_mut() { material.flip = (*flip).into(); + material.passthrough = passthrough.0; } } diff --git a/src/image/lut/mod.rs b/src/image/lut/mod.rs index 3377dc3..c67a58b 100644 --- a/src/image/lut/mod.rs +++ b/src/image/lut/mod.rs @@ -384,7 +384,7 @@ impl FromWorld for LutNeutral { let data = include_bytes!("../../../assets/luts/neutral.png"); - Self(Lut3d::new(&mut *images, data)) + Self(Lut3d::new(&mut images, data)) } }