Commit d76c782
authored
Remove
# Objective
A `TransparentUI` phase's items all target the same camera so there is
no need to store the current camera entity in `UiBatch` and ending the
current `UiBatch` on camera changes is pointless as the camera doesn't
change.
## Solution
Remove the `camera` fields from `UiBatch`, `UiShadowsBatch` and
`UiTextureSliceBatch`.
Remove the camera changed check from `prepare_uinodes`.
## Testing
The `multiple_windows` and `split_screen` examples both render UI
elements to multiple cameras and can be used to test these changes.
The UI material plugin already didn't store the camera entity per batch
and worked fine without it.camera from UiBatch (#17663)1 parent 76e9bf9 commit d76c782
File tree
2 files changed
+0
-8
lines changed- crates/bevy_ui/src/render
2 files changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | | - | |
940 | 939 | | |
941 | 940 | | |
942 | 941 | | |
| |||
1066 | 1065 | | |
1067 | 1066 | | |
1068 | 1067 | | |
1069 | | - | |
1070 | | - | |
1071 | 1068 | | |
1072 | 1069 | | |
1073 | 1070 | | |
| |||
1076 | 1073 | | |
1077 | 1074 | | |
1078 | 1075 | | |
1079 | | - | |
1080 | 1076 | | |
1081 | 1077 | | |
1082 | 1078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
446 | 445 | | |
447 | 446 | | |
448 | 447 | | |
449 | | - | |
450 | | - | |
451 | 448 | | |
452 | 449 | | |
453 | 450 | | |
| |||
457 | 454 | | |
458 | 455 | | |
459 | 456 | | |
460 | | - | |
461 | 457 | | |
462 | 458 | | |
463 | 459 | | |
| |||
0 commit comments