Commit a768c6b
Fix hand tracking visuals by deduplicating input sources across session arrays
Summary: Fixed an issue where hand tracking visuals were not displayed due to some WebXR runtimes including the same hands in both session.inputSources and session.trackedSources as different objects. Processing duplicates from trackedSources would overwrite the isPrimary flag, hiding hand visuals. The fix adds deduplication logic to skip reprocessing duplicates, preserving the correct isPrimary status.
Reviewed By: zjm-meta
Differential Revision:
D86931308
Privacy Context Container: L1334777
fbshipit-source-id: 5ebb295cd7fae786753d1c892c2e41330a25e2011 parent e418a89 commit a768c6b
1 file changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
230 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
231 | 253 | | |
232 | 254 | | |
| 255 | + | |
| 256 | + | |
233 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
234 | 261 | | |
235 | 262 | | |
236 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
237 | 267 | | |
238 | 268 | | |
239 | 269 | | |
| |||
0 commit comments