upgrade system
This commit is contained in:
parent
921947c131
commit
83256bfbe5
15 changed files with 331 additions and 43 deletions
|
|
@ -79,7 +79,6 @@ fn update_selection(
|
|||
mut reader: EventReader<SelectEntity>,
|
||||
mut old_query: Query<Entity, With<Selected>>,
|
||||
new_query: Query<(), With<Selectable>>,
|
||||
name_query: Query<&Name>,
|
||||
mut commands: Commands,
|
||||
) {
|
||||
let Some(SelectEntity(opt_entity)) = reader.read().last() else {
|
||||
|
|
@ -94,11 +93,6 @@ fn update_selection(
|
|||
return;
|
||||
};
|
||||
if !new_query.contains(*new_entity) {
|
||||
info!(
|
||||
"thing is not selectable {:?} {:?}",
|
||||
new_entity,
|
||||
name_query.get(*new_entity)
|
||||
);
|
||||
return;
|
||||
}
|
||||
for entity in old_query.iter_mut() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue