Keep a restored tracked aircraft when Cesium starts or resumes instead of treating it as new navigation

This commit is contained in:
German Khokhlov committed 2026-11-03 22:56:24 +04:00
1 parent 59a2e31aa8
commit 01ae045346
4 files changed
+73 -3

No files matched your search

+7 -1
View File
@@ -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,