mirror of
https://github.com/eliasstepanik/big_space_with_trim.git
synced 2026-01-11 17:28:28 +00:00
simplify ordering with chain
This commit is contained in:
parent
56dff7ebbe
commit
66d8e2fce8
10
src/lib.rs
10
src/lib.rs
@ -135,18 +135,20 @@ impl<P: GridPrecision> Plugin for FloatingOriginPlugin<P> {
|
||||
// add transform systems to startup so the first update is "correct"
|
||||
.add_startup_systems(
|
||||
(
|
||||
recenter_transform_on_grid::<P>.before(update_global_from_grid::<P>),
|
||||
update_global_from_grid::<P>.before(transform_propagate_system::<P>),
|
||||
recenter_transform_on_grid::<P>,
|
||||
update_global_from_grid::<P>,
|
||||
transform_propagate_system::<P>,
|
||||
)
|
||||
.chain()
|
||||
.in_set(TransformSystem::TransformPropagate),
|
||||
)
|
||||
.add_systems(
|
||||
(
|
||||
recenter_transform_on_grid::<P>.before(update_global_from_grid::<P>),
|
||||
update_global_from_grid::<P>.before(transform_propagate_system::<P>),
|
||||
recenter_transform_on_grid::<P>,
|
||||
update_global_from_grid::<P>,
|
||||
transform_propagate_system::<P>,
|
||||
)
|
||||
.chain()
|
||||
.in_set(TransformSystem::TransformPropagate),
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user