RichoDemus/bevy-console

Update `bevy_egui` to v0.24

umut-sahin opened this issue · 5 comments

When bevy-console is used with bevy-inspector-egui, adding the console plugin crashes with:

Error adding plugin bevy_egui::EguiPlugin: : plugin was already added in application

I think the reason for this is that both v0.23 and v0.24 gets included in the build and somehow this check fails:

bevy-console/src/lib.rs

Lines 77 to 81 in 44d431c

// Don't initialize an egui plugin if one already exists.
// This can happen if another plugin is using egui and was installed before us.
if !app.is_plugin_added::<EguiPlugin>() {
app.add_plugins(EguiPlugin);
}

I'm not 100% sure that it'll solve the issue but I think it's worth a try!

Could you try the current version on the main brunch?

It's working!

Nice! I'll release this version

Thanks for the quick resolution, looking forward to use the library 🥳

no worries :)