johanhelsing / bevy_smud

Sdf 2d shape renderer for Bevy
Other
143 stars 10 forks source link

Error on entity despawn #26

Open Dimchikkk opened 1 year ago

Dimchikkk commented 1 year ago

Hello I encountered the error on SmudShape entity despawn:

ERROR bevy_render::render_resource::pipeline_cache: failed to process shader: Unresolved import: Custom("bevy_smud::generated::cec721b4-2ec6-478e-85ab-afaec5a87178")

or on bevy 0.11

│ var<uniform> globals: _naga_oil_mod_MJSXM6K7OJSW4ZDFOI5DUZ3MN5RGC3DT_memberGlobals;
  │                                ^
  │
  = missing import 'bevy_smud::sdf'

To reproduce the issue just call commands.entity(smud_entity).despawn_recursive(); and check logs.