Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - schedule_v3: fix default set for systems not being applied #7350

Conversation

jakobhellermann
Copy link
Contributor

Objective

add_system(system) without any .in_set configuration should land in CoreSet::Update.
We check that the sets are empty, but for systems there is always the SystemTypeset.

Solution

  • instead of is_empty(), check that the only set it the SystemTypeSet

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-ECS Entities, components, systems, and events labels Jan 24, 2023
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to manually cherrypick these changes into #7267 too.

bors r+

bors bot pushed a commit that referenced this pull request Jan 24, 2023
# Objective

`add_system(system)` without any `.in_set` configuration should land in `CoreSet::Update`.
We check that the sets are empty, but for systems there is always the `SystemTypeset`.

## Solution

- instead of `is_empty()`, check that the only set it the `SystemTypeSet`
@bors bors bot changed the title schedule_v3: fix default set for systems not being applied [Merged by Bors] - schedule_v3: fix default set for systems not being applied Jan 24, 2023
@bors bors bot closed this Jan 24, 2023
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
…e#7350)

# Objective

`add_system(system)` without any `.in_set` configuration should land in `CoreSet::Update`.
We check that the sets are empty, but for systems there is always the `SystemTypeset`.

## Solution

- instead of `is_empty()`, check that the only set it the `SystemTypeSet`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants