forked from djeedai/bevy_hanabi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use strong handle in
CompiledParticleEffect
(djeedai#306)
This fixes a panic in the extract code, where the `EffectAsset` was unloaded after the particle effect was compiled but before the extraction finished. The idea of using a weak handle was to avoid preventing the asset from unloading, but because `CompiledParticleEffect` will anyway observe any change on the source `ParticleEffect` and its handle, clearing that handle will make `CompiledParticleEffect` also clear its own handle, even if strong, which will result in the asset being "freed" from references held by Hanabi. Fixes djeedai#289
- Loading branch information
Showing
2 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters