-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a SystemSet for system ordering (#5)
I ran into an issue when trying to add the transform propagation systems to a schedule more than once. The app would panic because there was more than one instance of `propagate_transforms::<P>` and `recenter_transform_on_grid::<P>` in the system graph, so Bevy didn't know how to actually resolve the dependencies. By using a `SystemSet`, we can avoid this issue nicely. Unfortunately, I couldn't come up with a good name for the set, so I decided to stick the definition inside the `build()` method itself. That way at least the poor naming won't be exposed 😛. It still feels a little icky to me though. --------- Co-authored-by: Aevyrie <aevyrie@gmail.com> Co-authored-by: Pyxrs <simplycmd00@gmail.com>
- Loading branch information
1 parent
5dacfd8
commit 0907ec1
Showing
6 changed files
with
34 additions
and
34 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
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
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
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
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
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