From 60b067210bc94e7d60a4ea76ac94515b71232b53 Mon Sep 17 00:00:00 2001 From: Aurore LAFAURIE Date: Mon, 22 Jul 2024 17:23:34 +0200 Subject: [PATCH] [ui] Fix Camera Init Group Index should stay the same at adding or removing CameraInit events --- meshroom/ui/reconstruction.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meshroom/ui/reconstruction.py b/meshroom/ui/reconstruction.py index b78841f9..7dd59b92 100755 --- a/meshroom/ui/reconstruction.py +++ b/meshroom/ui/reconstruction.py @@ -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