You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `bevy_hecs::query::FetchOr<(bevy_hecs::query::FetchChanged<bevy::render::camera::OrthographicProjection>, bevy_hecs::query::FetchChanged<bevy::prelude::Transform>)>: bevy::ecs::ReadOnlyFetch` is not satisfied
--> src/cursor_2dworld_pos_plugin.rs:62:76
|
62 | for(camera,(camera_ortho, camera_transform))in query_changed_camera.iter(){
| ^^^^ the trait `bevy::ecs::ReadOnlyFetch` is not implemented for `bevy_hecs::query::FetchOr<(bevy_hecs::query::FetchChanged<bevy::render::camera::OrthographicProjection>, bevy_hecs::query::FetchChanged<bevy::prelude::Transform>)>`
|
= note: required because of the requirements on the impl of `bevy::ecs::ReadOnlyFetch` for `(bevy_hecs::query::FetchRead<bevy::render::camera::Camera>, bevy_hecs::query::FetchOr<(bevy_hecs::query::FetchChanged<bevy::render::camera::OrthographicProjection>, bevy_hecs::query::FetchChanged<bevy::prelude::Transform>)>)`
Additional information
Using the .iter_mut() method works, so, nothing critical here.
As discussed in the discord, the culprit is the 'Or' , not the Changed.
it can be the same issue as #753 , but we were not sure on discord, so filing another issue.
The text was updated successfully, but these errors were encountered:
Bevy version
Following version, containing changes on query:
9cc6368
Operating system & version
Ubuntu 20.04
What you did
The following query, that contains an Or, does not have the .iter() method, only iter_mut()
What you expected to happen
Should have compiled
What actually happened
Compilation failed:
Additional information
Using the .iter_mut() method works, so, nothing critical here.
As discussed in the discord, the culprit is the 'Or' , not the Changed.
it can be the same issue as #753 , but we were not sure on discord, so filing another issue.
The text was updated successfully, but these errors were encountered: