mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 00:02:25 +00:00
Keep an explicit CCTV pick of the camera a move re-opened
Until someone picks a camera, a settled move re-opens CCTV on the camera nearest the view and keeps the opening pick provisional. setActiveCamera ends that opening pick, but for a camera that is already active and activated it returns UNCHANGED before clearing the flag. So pressing NEAREST on the camera a move had just re-opened (or selecting it from the list, or through setParams) left the pick provisional, and the landing of NEAREST's own flight, or the next pan, switched to another camera. Clear the provisional flag on the UNCHANGED path too. reopenNearestCamera only activates a different camera, so it is unaffected, and the same-camera re-select still skips the activation work.
This commit is contained in:
1 parent
42540ad85e
commit
b65a7aaed8
2 files changed
+132
No files matched your search
@@ -79,6 +79,9 @@ export function createSelection({
|
||||
record,
|
||||
)
|
||||
) {
|
||||
// Picking the camera a settled move re-opened is still a choice: later
|
||||
// settled moves must leave it alone.
|
||||
layerState._openingCameraProvisional = false;
|
||||
// Browser-only feeds have a separate player; a reselect retries it
|
||||
// without re-running activation or touching the projection geometry.
|
||||
if (parts.model.isBrowserOverlayCamera(record.camera)) {
|
||||
|
||||
Reference in new issue
Block a user