Insertion and Mutation of different Components on the same EntityMut
#4155
Labels
A-ECS
Entities, components, systems, and events
C-Bug
An unexpected or incorrect behavior
S-Duplicate
This issue or PR already exists
Bevy version
0.6
Operating system & version
Windows 10 64-bit
What you did
The following assertion fails if I uncomment the line mentioned in the snippet below:
What you expected to happen
Insertion or removal of an unrelated component shouldn't change the result of the test.
What actually happened
The test doesn't fails because value of
dummy
is not set correctly.Additional information
This issue was raised from a discussion on Discord:
https://discord.com/channels/691052431525675048/950812276712165416
As a workaround, re-ordering the insertion/mutation steps seems to pass the test:
The text was updated successfully, but these errors were encountered: