Mark a resumed or share-restored follow only while it starts so a later follow of the same subject is navigation again

The aircraft scene binding re-tracked with origin share-restore, which stayed on the entity: a later trackedEntityChanged for it (cockpit exit, refocus) never stamped navigation, and the aircraft lost its selection origin. Flights, military and satellites now set a transient gevRestoring mark around follow.start, and the aircraft binding resumes with the origin the aircraft was selected by.
This commit is contained in:
German Khokhlov committed 2026-11-03 23:30:10 +04:00
1 parent cbe1d841ea
commit 90d64e6916
7 files changed
+176 -41

No files matched your search

+4 -7
View File
@@ -86,13 +86,10 @@ export class LayerBindings {
if (this.viewer)
this._navigationOwnerChangedRemover =
this.viewer.trackedEntityChanged.addEventListener((entity) => {
// 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'
)
// Rebinding the session's subject (a resumed renderer, a share
// restore) is part of the pending restoration, not a new navigation
// that supersedes it. The mark lasts only while the follow starts.
if (entity && !this._disposed && !entity.gevRestoring)
this._stampNavigation({ cancelPendingSelection: false });
});
// Vessel/installation focus flies without ever assigning a tracked entity,