Skip to content

Commit

Permalink
Merge pull request #176 from NiklasEi/fix_compilation_without_2d_3d_f…
Browse files Browse the repository at this point in the history
…eatures

Fix compilation without 2d 3d features
  • Loading branch information
NiklasEi authored Jan 3, 2024
2 parents 83d480e + e9de3dc commit 59f9660
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ jobs:
components: rustfmt, clippy
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- name: Run clippy
run: cargo clippy --workspace --all-targets --all-features -- -W clippy::doc_markdown
- name: Check all feature combinations
run: cargo hack check --feature-powerset
- name: Check format
run: cargo fmt --all -- --check
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## v0.19.0 - 27.12.2023
### v0.19.1 - 03.01.2024
- Fix: `standard_dynamic_assets` feature fails compilation without `2d` or `3d` feature (resolves [#175](https://github.com/NiklasEi/bevy_asset_loader/issues/175))

## v0.19.0 - 27.12.2023 - yanked
- New API to add and configure loading states
- Less API surface on Bevy's App type and fewer generics
- Only two methods on the App: `add_loading_state` and `configure_loading_state`
Expand Down
2 changes: 1 addition & 1 deletion bevy_asset_loader/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_asset_loader"
version = "0.19.0"
version = "0.19.1"
authors = ["Niklas Eicker <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
5 changes: 3 additions & 2 deletions bevy_asset_loader/src/standard_dynamic_asset.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::dynamic_asset::{DynamicAsset, DynamicAssetType};
use crate::dynamic_asset::{DynamicAssetCollection, DynamicAssets};
use bevy::asset::{Asset, AssetServer, Assets, Handle, LoadedFolder, UntypedHandle};
use bevy::asset::{Asset, AssetServer, Assets, LoadedFolder, UntypedHandle};
use bevy::ecs::system::Command;
use bevy::ecs::world::World;
use bevy::reflect::TypePath;
Expand Down Expand Up @@ -248,9 +248,10 @@ impl DynamicAsset for StandardDynamicAsset {
}
}

#[cfg(any(feature = "3d", feature = "2d"))]
impl StandardDynamicAsset {
fn update_image_sampler(
handle: &mut Handle<Image>,
handle: &mut bevy::asset::Handle<Image>,
images: &mut Assets<Image>,
sampler_type: &ImageSamplerType,
) {
Expand Down

0 comments on commit 59f9660

Please sign in to comment.