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:
Eye 2024-01-03 19:03:18 +08:00 committed by GitHub
parent 5697fee3ad
commit 07cd955c02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,7 +372,7 @@ impl RenderAsset for LineGizmo {
type Param = SRes<RenderDevice>;
fn persistence_policy(&self) -> RenderAssetPersistencePolicy {
RenderAssetPersistencePolicy::Unload
RenderAssetPersistencePolicy::Keep
}
fn prepare_asset(