[ui] Fix Camera Init Group Index should stay the same at adding or removing CameraInit events

This commit is contained in:
Aurore LAFAURIE 2024-07-22 17:23:34 +02:00
parent 7221368f14
commit 60b067210b

View file

@ -607,6 +607,9 @@ class Reconstruction(UIGraph):
if self.cameraInit is None or self.cameraInit not in cameraInits:
self.cameraInit = cameraInits[0] if cameraInits else None
# Manually emit the signal to ensure the active CameraInit index is always up-to-date in the UI
self.cameraInitChanged.emit()
def getCameraInitIndex(self):
if not self._cameraInit:
# No CameraInit node