From 4c76b5cb4ad439bf8fa3064d1283acaac6814498 Mon Sep 17 00:00:00 2001 From: Aceeri Date: Fri, 15 Dec 2023 14:10:06 -0800 Subject: [PATCH] Move clearing the gizmos to FixedLast --- crates/bevy_gizmos/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bevy_gizmos/src/lib.rs b/crates/bevy_gizmos/src/lib.rs index 3d5a22a58986d9..f5f0ae1b623bba 100644 --- a/crates/bevy_gizmos/src/lib.rs +++ b/crates/bevy_gizmos/src/lib.rs @@ -31,7 +31,7 @@ pub mod prelude { pub use crate::{gizmos::Gizmos, AabbGizmo, AabbGizmoConfig, GizmoConfig}; } -use bevy_app::{FixedUpdate, Last, Plugin, PostUpdate, RunFixedUpdateLoop}; +use bevy_app::{FixedLast, Last, Plugin, PostUpdate, RunFixedMainLoop}; use bevy_asset::{load_internal_asset, Asset, AssetApp, Assets, Handle}; use bevy_core::cast_slice; use bevy_ecs::{ @@ -97,14 +97,14 @@ impl Plugin for GizmoPlugin { (propagate_gizmos::, update_gizmo_meshes).chain(), ) .add_systems( - RunFixedUpdateLoop, + RunFixedMainLoop, ( - (store_default_gizmos,).before(bevy_time::run_fixed_update_schedule), - (collect_default_gizmos::,).after(bevy_time::run_fixed_update_schedule), + store_default_gizmos.before(bevy_time::run_fixed_main_schedule), + collect_default_gizmos::.after(bevy_time::run_fixed_main_schedule), ), ) .add_systems( - FixedUpdate, + FixedLast, (clear_gizmo_context::, clear_gizmo_context::), ) .add_systems(