Skip to content

Fix camera display order to be idempotent across loads and pipefiles - #1857

Open
romleiaj wants to merge 2 commits into
mainfrom
dev/camera-display-order
Open

Fix camera display order to be idempotent across loads and pipefiles#1857
romleiaj wants to merge 2 commits into
mainfrom
dev/camera-display-order

Conversation

@romleiaj

Copy link
Copy Markdown
Collaborator

No description provided.

@romleiaj
romleiaj requested a review from BryonLewis August 17, 2026 17:31
@romleiaj
romleiaj force-pushed the dev/camera-display-order branch from 068462f to cc04d45 Compare August 20, 2026 14:51
romleiaj and others added 2 commits August 20, 2026 10:56
camMap's key order is insertion order: cameras are added one at a time
inside an awaited per-camera load loop, and entries can survive a
dataset switch, so it is not a dependable statement of rig order.
Anything where "which camera is first/last" carries meaning -- the
registration reference camera, the direction a loop-closure residual
is measured in -- needs the order the dataset actually persists.

Add displayOrder, published by the viewer from
orderedMultiCamCameraNames at load (and cleared on single-camera
datasets so a previous rig's order cannot leak), and
orderedCameraNames() to read it back restricted to cameras present,
falling back to camMap order when no order has been set.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014S8CVLjQDzaBGbCSKL7FiF
(cherry picked from commit c5464db)
The registration panel, multicam tools/toolbar and the per-camera
registration import buttons listed cameras in camMap insertion order,
which is load-completion order and can differ from one open to the next
(EO/UV/IR one time, EO/IR/UV the next). Read CameraStore.orderedCameraNames()
instead, which follows the dataset's persisted cameraOrder -- the same
order the viewer tabs and the 2-cam/3-cam pipeline inputs use.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MD6kx1uDv4NuiKdFNnYpG2
@romleiaj
romleiaj force-pushed the dev/camera-display-order branch from cc04d45 to 4025b73 Compare August 20, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant