mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 02:02:21 +00:00
A transit vehicle coming into view is turned along its course at once
The rotation pass reprojected courses only when the camera moved, a poll marked a course, or a vehicle was moving. A vehicle that entered the view or was shown on a later visibility sweep (its ground height arriving after its poll) kept the icon pointing up until one of those happened, under a camera that held still. The visibility sweep now marks the rotations for the next pass when it changes what is in view or shown.
This commit is contained in:
1 parent
6fc1aaff02
commit
37d44c3364
2 files changed
+21
-1
No files matched your search
@@ -970,7 +970,12 @@ export function createRendering({ state, services, parts }) {
|
||||
}
|
||||
flushMarkers();
|
||||
state._shownCount = state._visible.size;
|
||||
if (changed) state._detectRevision++;
|
||||
if (changed) {
|
||||
state._detectRevision++;
|
||||
// A vehicle that came into view or was shown is turned on the next
|
||||
// rotation pass, though neither the camera nor a poll changed.
|
||||
state._rotationDirty = true;
|
||||
}
|
||||
syncRenderHold();
|
||||
governorRequestRender('transit-visibility');
|
||||
return state._shownCount;
|
||||
|
||||
Reference in new issue
Block a user