Skip to content

Commit

Permalink
chore: update flax
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Oct 27, 2024
1 parent 410ec08 commit 7303f25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
16 changes: 4 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions violet-core/src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn widget_template(entity: &mut EntityBuilder, name: String) {
pub fn templating_system(
layout_changes_tx: flume::Sender<(Entity, LayoutUpdateEvent)>,
) -> BoxedSystem {
let query = Query::new(entity_ids()).filter(Or((rect().with(), layout_cache().without())));
let query = Query::new(entity_ids()).with_filter(Or((rect().with(), layout_cache().without())));

System::builder()
.with_name("templating_system")
Expand Down Expand Up @@ -242,7 +242,7 @@ where
{
System::builder()
.with_cmd_mut()
.with_query(Query::new((entity_ids(), query)).filter(filter))
.with_query(Query::new((entity_ids(), query)).with_filter(filter))
.build(
move |cmd: &mut CommandBuffer, mut query: QueryBorrow<_, _>| {
query.for_each(|(id, item)| hydrate(cmd, id, item))
Expand Down

0 comments on commit 7303f25

Please sign in to comment.