-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Spawning an Entity affecting other Entity behavior #328
Comments
Suggested Labels: |
not sure if this is related, but I experienced a similar thing where the material would "jump" between entities even if I don't have any systems that change the material, and each entity has their own material. Not working on materials atm so I haven't had the chance to investigate it yet. This started happening after updating to 0ae74a4, I was using 2dadc86 before this. |
@cart Yea, that looks similar to the commit that introduced the issue for me ( @sanisoclem Any chance you could try the two commits I identified as bad and good and see if your issue was introduced in the same commit? |
Here's a minimal repro example, with some of my findings in case they help. https://github.com/jngbsn/bevy_entity_bug |
yep, confirming that the issue only happen when using 4eb437a and up. |
Cool cool. Thanks y'all! I'm working on a fix now. |
This issue no longer repros for me with master after the fix was merged! @jngbsn @sanisoclem you might double check your test cases with |
fixed for me as well, despawn works as expected too. Cheers! |
Thanks for checking! |
This is happening for me on
bevy 0.1.3
. The behavior appears to be introduced by commit4eb437
. The immediately prior commit (2dadc8
) produces the behavior I expect.Calling
commands.spawn
is causing one of my entities to disappear, and causes another entity to take on the Transform of the entity that disappeared. I suspect that some kind of entity ID or entity index is becoming incorrect.Here is a sample of correct behavior with my code running with
bevy#2dadc8
:He is a sample of the incorrect behavior with
bevy#4eb437
:Notice on the client that the cube disappears and that the plane appears to be getting the Transform that should be being applied to the cube.
Finally, on
4eb437
if I comment out spawning the messages that display on the sidebar in the client, the correct behavior is restored (except the client no longer has messages in the sidebar list)Reproduction
This can be reliably reproduced by:
ncallaway/bevy_prototype_networking_laminar
commit90cebc
(currentlymaster
)cargo.toml
to point bevy at the last known working commit:cargo run --release --example testbed -- -s 127.0.0.1:12530
,cargo run --example testbed -- -c 127.0.0.1:12541 127.0.0.1:12540 foo
WASD
and the cube position is replicated to the client)cargo.toml
to point bevy at the next commit:examples/testbed/net/mod.rs
lines 127-131The text was updated successfully, but these errors were encountered: