mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 15:52:21 +00:00
Keep authored scene playback, pack media and geographic interactions across globes
This commit is contained in:
1 parent
a49671a391
commit
160e445677
18 files changed
+959
-101
No files matched your search
@@ -41,6 +41,7 @@ async function start(next, engineSwitch = false, cockpit = null) {
|
||||
layerSession.restoringView = false;
|
||||
for (const {module} of layerSession.manager.layers.values()) module.resumeViewport?.();
|
||||
if (layerSession.handoffLayers) layerSession.manager.layers.get('directions')?.module.resumeCamera?.();
|
||||
layerSession.director?.resumeScene();
|
||||
// Only resume the aircraft that actually survived the handoff. A history
|
||||
// entry may select a different subject, and a stale track may disappear.
|
||||
const target = style.getAircraftTrackingTarget();
|
||||
@@ -144,6 +145,7 @@ async function reconcile(remember = false) {
|
||||
if (layerSession.handoffLayers) {
|
||||
manager.layers.get('directions')?.module.suspendCamera?.();
|
||||
manager.layers.get('satellites')?.module.suspendCamera?.();
|
||||
layerSession.director?.suspendScene();
|
||||
}
|
||||
renderers.retain(kind);
|
||||
await application.destroy();
|
||||
|
||||
Reference in new issue
Block a user