mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Qualify embedded_asset expansion with $crate:: (#11961)
# Objective Right now, if you call `embedded_asset` with 2 arguments as a qualified path it doesn't work (`bevy::asset::embedded_asset!(app, "foo.wgsl")` -> "cannot find macro `embedded_asset` in this scope") ## Solution Use `$crate::` in expansion for 2-arg case.
This commit is contained in:
parent
efda05d11e
commit
cb5ff51d1e
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ pub fn _embedded_asset_path(
|
|||
#[macro_export]
|
||||
macro_rules! embedded_asset {
|
||||
($app: ident, $path: expr) => {{
|
||||
embedded_asset!($app, "src", $path)
|
||||
$crate::embedded_asset!($app, "src", $path)
|
||||
}};
|
||||
|
||||
($app: ident, $source_path: expr, $path: expr) => {{
|
||||
|
|
Loading…
Reference in a new issue