Commit b9f1179
Swap order of eviction/extraction when extracting for specialization (#18846)
# Objective
Fixes #18843
## Solution
We need to account for the material being added and removed in the
course of the same frame. We evict the caches first because the entity
will be re-added if it was marked as needing specialization, which
avoids another check on removed components to see if it was "really"
despawned.1 parent 6a06e0a commit b9f1179
File tree
2 files changed
+15
-10
lines changed- crates
- bevy_pbr/src
- bevy_sprite/src/mesh2d
2 files changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
830 | 828 | | |
831 | 829 | | |
832 | 830 | | |
| |||
849 | 847 | | |
850 | 848 | | |
851 | 849 | | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
852 | 855 | | |
853 | 856 | | |
854 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
572 | 570 | | |
573 | 571 | | |
574 | 572 | | |
| |||
577 | 575 | | |
578 | 576 | | |
579 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
| |||
0 commit comments