Fix headless asset preprocessing hang #49

Merged
EIREXE merged 1 commits from fix/headless-image-loader into master 2026-09-19 19:07:39 +00:00
Showing only changes of commit 9684974298 - Show all commits
+2 -1
View File
@@ -2,7 +2,7 @@ use bevy::{
app::ScheduleRunnerPlugin,
asset::{AssetMode, AssetPlugin, processor::AssetProcessor, processor::ProcessorState},
gltf::GltfPlugin,
image::ImagePlugin,
image::{CompressedImageFormats, ImageLoader, ImagePlugin},
prelude::*,
tasks::block_on,
text::TextPlugin,
@@ -19,6 +19,7 @@ fn main() -> ExitCode {
..default()
})
.add_plugins((ImagePlugin::default(), TextPlugin, GltfPlugin::default()))
.register_asset_loader(ImageLoader::new(CompressedImageFormats::NONE))
.add_plugins(AssetProcessingPlugin)
.add_systems(Update, finish_when_processed);