Commit ef7bce8
systemstate support commands track location (#22353)
# Objective
When acquiring Commands within SystemState, it causes incorrect tracking
of MaybeLocation in CommandQueue, mistakenly pointing to the FromWorld
trait implementation.
## Solution
Add track_caller support for the Commands SystemParam.
## Testing
I only verified whether tracking is present, but did not perform any
tests.
Co-authored-by: Mushine Lament <[email protected]>1 parent 61fdae2 commit ef7bce8
File tree
4 files changed
+10
-0
lines changed- crates/bevy_ecs/src
- system
- commands
- world
4 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| |||
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| 366 | + | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| |||
421 | 423 | | |
422 | 424 | | |
423 | 425 | | |
| 426 | + | |
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
| |||
435 | 438 | | |
436 | 439 | | |
437 | 440 | | |
| 441 | + | |
438 | 442 | | |
439 | 443 | | |
440 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
| 1339 | + | |
1339 | 1340 | | |
1340 | 1341 | | |
1341 | 1342 | | |
| |||
2171 | 2172 | | |
2172 | 2173 | | |
2173 | 2174 | | |
| 2175 | + | |
2174 | 2176 | | |
2175 | 2177 | | |
2176 | 2178 | | |
| |||
2216 | 2218 | | |
2217 | 2219 | | |
2218 | 2220 | | |
| 2221 | + | |
2219 | 2222 | | |
2220 | 2223 | | |
2221 | 2224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3829 | 3829 | | |
3830 | 3830 | | |
3831 | 3831 | | |
| 3832 | + | |
3832 | 3833 | | |
3833 | 3834 | | |
3834 | 3835 | | |
| |||
0 commit comments