-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Make default state change trigger self state transitions #21792
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
base: main
Are you sure you want to change the base?
Conversation
|
It looks like your PR is a breaking change, but you didn't provide a migration guide. Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes. |
|
|
We shouldn't change the default on only one of the method, they should all behave the same 👍 |
|
Nit: nowhere in std and bevy "not equal" is written as |
| // Not configurable for the moment. This controls whether inserting a state with the same value as a pre-existing state should run state transitions. | ||
| // Leaving it at `true` makes state insertion idempotent. Neat! | ||
| allow_same_state_transitions: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confused here, if allow_same_state_transitions is true, then same state transitions are allowed, and the state transition systems should be run? Wouldn't state insertion be idempotent then when allow_same_state_transitions is false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, since when deactivated, inserting the state without it pre-existing will trigger transitions, and then inserting it a second time won't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, too sleepy..
Component change detection has a |
Objective
set_forced)Solution
set->set_if_neqset_forced->setTesting