Skip to content

Commit

Permalink
Move clearing the gizmos to FixedLast
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceeri committed Dec 15, 2023
1 parent f40c514 commit 4c76b5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/bevy_gizmos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -97,14 +97,14 @@ impl Plugin for GizmoPlugin {
(propagate_gizmos::<Fixed>, update_gizmo_meshes).chain(),
)
.add_systems(
RunFixedUpdateLoop,
RunFixedMainLoop,
(
(store_default_gizmos,).before(bevy_time::run_fixed_update_schedule),
(collect_default_gizmos::<Fixed>,).after(bevy_time::run_fixed_update_schedule),
store_default_gizmos.before(bevy_time::run_fixed_main_schedule),
collect_default_gizmos::<Fixed>.after(bevy_time::run_fixed_main_schedule),
),
)
.add_systems(
FixedUpdate,
FixedLast,
(clear_gizmo_context::<Update>, clear_gizmo_context::<Fixed>),
)
.add_systems(
Expand Down

0 comments on commit 4c76b5c

Please sign in to comment.