mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Keep a restored tracked aircraft when Cesium starts or resumes instead of treating it as new navigation
This commit is contained in:
1 parent
59a2e31aa8
commit
01ae045346
4 files changed
+73
-3
No files matched your search
@@ -86,7 +86,13 @@ export class LayerBindings {
|
||||
if (this.viewer)
|
||||
this._navigationOwnerChangedRemover =
|
||||
this.viewer.trackedEntityChanged.addEventListener((entity) => {
|
||||
if (entity && !this._disposed)
|
||||
// Rebinding the session's aircraft is part of the pending share
|
||||
// restoration, not a new navigation that supersedes that restore.
|
||||
if (
|
||||
entity &&
|
||||
!this._disposed &&
|
||||
entity.gevSelectionOrigin !== 'share-restore'
|
||||
)
|
||||
this._stampNavigation({ cancelPendingSelection: false });
|
||||
});
|
||||
// Vessel/installation focus flies without ever assigning a tracked entity,
|
||||
|
||||
Reference in new issue
Block a user