Skip to content

Query filters using T can Trigger conflict with Query<&mut T> #17021

Open
@PhaestusFox

Description

Bevy version

0.15

What you did

fn test(changed: Query<&Visibility, Changed>, mut transforms: Query<&mut Transform>) {
panic!()
}

What went wrong

Query filters trigger conflicting Query Error B0001

  • what were you expecting?
    to be able to access components from one query while filtering for changes in another
  • what actually happened?
    bevy panics saying I'm trying to access the same data mutably twice

Additional information

this might be working as intended. if so could we make that part of the error message since it suggests using Without to fix the conflict but that's not exactly helpful when it requires the component to have it changed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions