idanarye / bevy-yoleck

Your Own Level Editor Creation Kit
Other
172 stars 11 forks source link

Workaround the assets race #29

Closed idanarye closed 11 months ago

idanarye commented 1 year ago

There is a bug with Bevy's assets loader (https://github.com/bevyengine/bevy/issues/9337) That gets triggered when Yoleck:

In all these cases, Yoleck replaces all the entities under its control and creates new ones, but the new ones will only start loading their assets on the next frame, when the Yoleck components are registered and the populate systems run.

This will probably get fixed in Bevy 0.12 with Bevy Asset V2, but until then I'd like Yoleck to have a workaround.

idanarye commented 11 months ago

Bevy 0.12 and Bevy Assets v2 has fixed this.

idanarye commented 11 months ago

Turns out problems do go away if you just ignore them.