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
@ -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 New Issue
Block a user