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
@ -372,7 +372,7 @@ impl RenderAsset for LineGizmo {
|
|||||||
type Param = SRes<RenderDevice>;
|
type Param = SRes<RenderDevice>;
|
||||||
|
|
||||||
fn persistence_policy(&self) -> RenderAssetPersistencePolicy {
|
fn persistence_policy(&self) -> RenderAssetPersistencePolicy {
|
||||||
RenderAssetPersistencePolicy::Unload
|
RenderAssetPersistencePolicy::Keep
|
||||||
}
|
}
|
||||||
|
|
||||||
fn prepare_asset(
|
fn prepare_asset(
|
||||||
|
Loading…
Reference in New Issue
Block a user