Compare commits

..
Author SHA1 Message Date
EIREXE b5f3d8280b Register loaders during asset preprocessing
CI / production-build (pull_request) Canceled after 20m48s
CI / build-and-test (pull_request) Successful in 1m10s
2026-09-19 20:07:21 +02:00
+1 -2
View File
@@ -2,7 +2,7 @@ use bevy::{
app::ScheduleRunnerPlugin, app::ScheduleRunnerPlugin,
asset::{AssetMode, AssetPlugin, processor::AssetProcessor, processor::ProcessorState}, asset::{AssetMode, AssetPlugin, processor::AssetProcessor, processor::ProcessorState},
gltf::GltfPlugin, gltf::GltfPlugin,
image::{CompressedImageFormats, ImageLoader, ImagePlugin}, image::ImagePlugin,
prelude::*, prelude::*,
tasks::block_on, tasks::block_on,
text::TextPlugin, text::TextPlugin,
@@ -19,7 +19,6 @@ fn main() -> ExitCode {
..default() ..default()
}) })
.add_plugins((ImagePlugin::default(), TextPlugin, GltfPlugin::default())) .add_plugins((ImagePlugin::default(), TextPlugin, GltfPlugin::default()))
.register_asset_loader(ImageLoader::new(CompressedImageFormats::NONE))
.add_plugins(AssetProcessingPlugin) .add_plugins(AssetProcessingPlugin)
.add_systems(Update, finish_when_processed); .add_systems(Update, finish_when_processed);