-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add Immutable Component
Support
#16372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e822fe0
9d00974
fdd3b35
d895c9a
24619f9
3ab5e97
ac328b1
cae92e5
ef1802c
d71fae0
4050f62
9511f8c
d837843
c353a74
462bbe8
e49dd27
2ac50cf
07f0892
42c531b
72c660d
1ff87eb
0699a9b
c38c227
83f5b0f
7794cfb
edb27c8
2dad7a5
60b8d55
e8ec322
ded6561
1326909
045f764
611386b
ab82afb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -456,7 +456,7 @@ impl World { | |
// Populate ObservedBy for each observed entity. | ||
for watched_entity in &(*observer_state).descriptor.entities { | ||
let mut entity_mut = self.entity_mut(*watched_entity); | ||
let mut observed_by = entity_mut.entry::<ObservedBy>().or_default(); | ||
let mut observed_by = entity_mut.entry::<ObservedBy>().or_default().into_mut(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the consequence of changes made to the entry API for components. Ideally, we would return Since we already have the |
||
observed_by.0.push(observer_entity); | ||
} | ||
(&*observer_state, &mut self.archetypes, &mut self.observers) | ||
|
Uh oh!
There was an error while loading. Please reload this page.