mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Fix: Gizmos crash due to the persistence policy being set to Unload
. Change it to Keep
(#11192)
# Objective Fixes Gizmos crash due to the persistence policy being set to `Unload` ## Solution Change it to `Keep` Co-authored-by: rqg <ranqingguo318@gmail.com>
This commit is contained in:
parent
5697fee3ad
commit
07cd955c02
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ impl RenderAsset for LineGizmo {
|
|||
type Param = SRes<RenderDevice>;
|
||||
|
||||
fn persistence_policy(&self) -> RenderAssetPersistencePolicy {
|
||||
RenderAssetPersistencePolicy::Unload
|
||||
RenderAssetPersistencePolicy::Keep
|
||||
}
|
||||
|
||||
fn prepare_asset(
|
||||
|
|
Loading…
Add table
Reference in a new issue