Skip to content

Commit

Permalink
Fix regression during port to bevy 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhelsing committed Nov 19, 2023
1 parent 3bc7d51 commit 8279aeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,7 @@ fn fragment(in: FragmentInput) -> @location(0) vec4<f32> {{
}}
"#
),
// format!("smud::generated::{shader_key:?}"),
// TODO
format!("smud::generated::bogus_key"),
format!("smud::generated::{shader_key:?}"),
);

// todo does this work, or is it too late?
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bevy::utils::Uuid;

pub fn generate_shader_id() -> String {
Uuid::new_v4().to_string().replace("-", "_")
Uuid::new_v4().to_string().replace('-', "_")
}

0 comments on commit 8279aeb

Please sign in to comment.