jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.12k stars 166 forks source link

Allow AppTypeRegistry to be accessible from Inspectable #107

Closed maxwellodri closed 1 year ago

maxwellodri commented 1 year ago

Small change to clone the AppTypeRegistry rather than remove it with a scope, since under the hood, AppTypeRegistry is an Arc. This is useful for Inspectable types that contain a dyn Reflect for instance and need the AppTypeRegistry to inspect.

jakobhellermann commented 1 year ago

Thanks for the PR. This would have definitely be the right fix, but I rewrote the crate anyways for 0.16 where this should now be fixed.