mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 05:03:47 +00:00
Fix the asset_processing
example failing to compile.
This commit is contained in:
parent
ad0c259044
commit
547a3df223
1 changed files with 4 additions and 4 deletions
|
@ -146,15 +146,15 @@ impl AssetLoader for CoolTextLoader {
|
|||
let ron: CoolTextRon = ron::de::from_bytes(&bytes)?;
|
||||
let mut base_text = ron.text;
|
||||
for embedded in ron.embedded_dependencies {
|
||||
let loaded = load_context
|
||||
let complete_loaded = load_context
|
||||
.loader()
|
||||
.immediate()
|
||||
.load::<Text>(&embedded)
|
||||
.await?;
|
||||
base_text.push_str(&loaded.get().0);
|
||||
base_text.push_str(&complete_loaded.get_asset().get().0);
|
||||
}
|
||||
for (path, settings_override) in ron.dependencies_with_settings {
|
||||
let loaded = load_context
|
||||
let complete_loaded = load_context
|
||||
.loader()
|
||||
.with_settings(move |settings| {
|
||||
*settings = settings_override.clone();
|
||||
|
@ -162,7 +162,7 @@ impl AssetLoader for CoolTextLoader {
|
|||
.immediate()
|
||||
.load::<Text>(&path)
|
||||
.await?;
|
||||
base_text.push_str(&loaded.get().0);
|
||||
base_text.push_str(&complete_loaded.get_asset().get().0);
|
||||
}
|
||||
Ok(CoolText {
|
||||
text: base_text,
|
||||
|
|
Loading…
Reference in a new issue