Skip to content

Commit

Permalink
Fix: Gizmos crash due to the persistence policy being set to Unload
Browse files Browse the repository at this point in the history
…. Change it to `Keep` (bevyengine#11192)

# Objective

Fixes Gizmos crash due to the persistence policy being set to `Unload`

## Solution

Change it to `Keep`

Co-authored-by: rqg <[email protected]>
  • Loading branch information
fantasyRqg and rqg authored Jan 3, 2024
1 parent 5697fee commit 07cd955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_gizmos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ impl RenderAsset for LineGizmo {
type Param = SRes<RenderDevice>;

fn persistence_policy(&self) -> RenderAssetPersistencePolicy {
RenderAssetPersistencePolicy::Unload
RenderAssetPersistencePolicy::Keep
}

fn prepare_asset(
Expand Down

0 comments on commit 07cd955

Please sign in to comment.