mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 12:13:25 +00:00
properly flag using CustomCursor::Url
in wasm (#16255)
# Objective - Fixes #16254 - fix building in wasm without custom_cursor ## Solution - Properly flag `CustomCursor::Url` which only exist in wasm, but also only when `custom_cursor` is enabled ## Testing - `cargo check --target wasm32-unknown-unknown -p bevy_winit`
This commit is contained in:
parent
49f63ed2cf
commit
eb558bbf77
1 changed files with 5 additions and 1 deletions
|
@ -154,7 +154,11 @@ fn update_cursors(
|
|||
CursorSource::Custom((cache_key, source))
|
||||
}
|
||||
}
|
||||
#[cfg(all(target_family = "wasm", target_os = "unknown"))]
|
||||
#[cfg(all(
|
||||
feature = "custom_cursor",
|
||||
target_family = "wasm",
|
||||
target_os = "unknown"
|
||||
))]
|
||||
CursorIcon::Custom(CustomCursor::Url { url, hotspot }) => {
|
||||
let cache_key = CustomCursorCacheKey::Url(url.clone());
|
||||
|
||||
|
|
Loading…
Reference in a new issue