-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't overwrite schedules when adding plugin (#236)
If user systems were added to any of the physics schedules (e.g. `PostProcessCollisions`) before `PhysicsPlugins` are added, the schedules would be replaced when adding `PhysicsPlugins`, effectively ignoring the user's system. ```rust app .add_system(PostProcessColllisions, filter_collisions) .add_plugins(PhysicsPlugins); ``` Solve it by using `edit_schedule` instead of `add_schedule`.
- Loading branch information
1 parent
776a785
commit 2eb3492
Showing
1 changed file
with
52 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters