Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Selene-Amanita committed Nov 9, 2023
1 parent 4976194 commit e6591bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub trait AssetLoader: Send + Sync + 'static {
fn extensions(&self) -> &[&str];
/// Returns the type name of the sub-asset type with the given `label`.
fn label_type_name(&self, label_type: &str) -> Option<&'static str>;
/// Returns the [`TypeId`] of the sub-asset type with the given `label``.
/// Returns the [`TypeId`] of the sub-asset type with the given `label`.
fn label_type_id(&self, label_type: &str) -> Option<TypeId>;
}

Expand Down
8 changes: 8 additions & 0 deletions crates/bevy_render/src/texture/exr_texture_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,12 @@ impl AssetLoader for ExrTextureLoader {
fn extensions(&self) -> &[&str] {
&["exr"]
}

fn label_type_name(&self, _label_type: &str) -> Option<&'static str> {
None
}

fn label_type_id(&self, _label_type: &str) -> Option<TypeId> {
None
}
}

0 comments on commit e6591bb

Please sign in to comment.