Skip to content

Commit

Permalink
Merge pull request #92 from hymm/fix-assets-loops
Browse files Browse the repository at this point in the history
Fix assets loops
  • Loading branch information
alice-i-cecile authored Jan 26, 2023
2 parents ad44974 + 8efe4cf commit e4c586d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 2 additions & 10 deletions crates/bevy_asset/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,16 +331,8 @@ impl AddAsset for App {
};

self.insert_resource(assets)
.add_system(
Assets::<T>::asset_event_system
.in_set(AssetSet::AssetEvents)
.in_set(CoreSet::Update),
)
.add_system(
update_asset_storage_system::<T>
.in_set(AssetSet::LoadAssets)
.in_set(CoreSet::Update),
)
.add_system(Assets::<T>::asset_event_system.in_set(AssetSet::AssetEvents))
.add_system(update_asset_storage_system::<T>.in_set(AssetSet::LoadAssets))
.register_type::<Handle<T>>()
.add_event::<AssetEvent<T>>()
}
Expand Down
6 changes: 1 addition & 5 deletions crates/bevy_asset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ impl Plugin for AssetPlugin {
feature = "filesystem_watcher",
all(not(target_arch = "wasm32"), not(target_os = "android"))
))]
app.add_system(
io::filesystem_watcher_system
.in_set(AssetSet::LoadAssets)
.in_set(CoreSet::Update),
);
app.add_system(io::filesystem_watcher_system.in_set(AssetSet::LoadAssets));
}
}

0 comments on commit e4c586d

Please sign in to comment.