Skip to content

Commit

Permalink
Add docs describing context
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Sep 10, 2023
1 parent 9eddc6f commit 888bf77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_asset/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ impl<'de> Visitor<'de> for AssetPathVisitor {
}
}

// NOTE: We manually implement "reflect value" because deriving Reflect on `AssetPath` breaks dynamic linking
// See https://github.com/bevyengine/bevy/issues/9747
// NOTE: This could use `impl_reflect_value` if it supported static lifetimes.

#[allow(unused_mut)]
impl GetTypeRegistration for AssetPath<'static> {
fn get_type_registration() -> TypeRegistration {
Expand Down

0 comments on commit 888bf77

Please sign in to comment.