Skip to content

Commit 7c8d939

Browse files
authored
derive Default on ShaderRef (#20779)
# Objective trivial
1 parent 7b7da73 commit 7c8d939

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/bevy_shader/src/shader.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,10 @@ impl ShaderImport {
429429
}
430430

431431
/// A reference to a shader asset.
432+
#[derive(Default)]
432433
pub enum ShaderRef {
433434
/// Use the "default" shader for the current context.
435+
#[default]
434436
Default,
435437
/// A handle to a shader stored in the [`Assets<Shader>`](bevy_asset::Assets) resource
436438
Handle(Handle<Shader>),

0 commit comments

Comments
 (0)