bevyengine / bevyengine/bevy

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

Open
#17,021 2 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Bug S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.