You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix deactivated camera still being used in render world
Switch to retained render world causes the extracted cameras in render
world to not be removed until camera in main world is despawned.
When extracting data from main world inactive cameras are skipped.
Therefore camera that was active and became inactive has a retained
`ExtractedCamera` component from previous frames (when it was active) and
is processed the same way as if it were active (there is no `active` field
on `ExtractedCamera`). This breakes switching between cameras in
`render_primitives` example.
Fix it by removing `ExtractedCamera` and related components from inactive
cameras.
Note that despawning inactive camera seems to be bad option because
they are spawned using `SyncToRenderWorld` component.
Fixes#15822
0 commit comments