Commit 617828c
authored
Simplify
# Objective
In `ui_picking` the camera_query iterator is run through multiple
filters and maps, which could be replaced by a single filter. Also
camera_query retrieves the `Camera` component but then it is thrown away
and queried for again.
## Solution
* Just collapse all the maps and filters into one `filter`.
* Only query for `Camera` once and keep the result, remove the second
query.ui_picking's camera search (#22075)1 parent 5ffc1d6 commit 617828c
1 file changed
+10
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
138 | 129 | | |
139 | | - | |
140 | | - | |
| 130 | + | |
| 131 | + | |
141 | 132 | | |
142 | 133 | | |
143 | 134 | | |
144 | 135 | | |
145 | 136 | | |
146 | 137 | | |
147 | 138 | | |
148 | | - | |
| 139 | + | |
149 | 140 | | |
150 | 141 | | |
151 | 142 | | |
| |||
0 commit comments