Skip to content

Commit 885c6a3

Browse files
committed
Add a TODO to also allow short paths for loaders.
1 parent b889259 commit 885c6a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/bevy_asset/src/server/loaders.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ impl AssetLoaders {
3838
/// Registers a new [`AssetLoader`]. [`AssetLoader`]s must be registered before they can be used.
3939
pub(crate) fn push<L: AssetLoader>(&mut self, loader: L) {
4040
let type_path = L::type_path();
41+
// TODO: Allow using the short path of loaders.
4142
let loader_asset_type = TypeId::of::<L::Asset>();
4243
let loader_asset_type_name = core::any::type_name::<L::Asset>();
4344

@@ -111,6 +112,7 @@ impl AssetLoaders {
111112
let loader_asset_type = TypeId::of::<L::Asset>();
112113
let loader_asset_type_name = core::any::type_name::<L::Asset>();
113114
let type_path = L::type_path();
115+
// TODO: Allow using the short path of loaders.
114116

115117
let loader_index = self.loaders.len();
116118

0 commit comments

Comments
 (0)