diff --git a/meshroom/ui/qml/ImageGallery/ImageGallery.qml b/meshroom/ui/qml/ImageGallery/ImageGallery.qml index 88e23af196..6e0256e22c 100644 --- a/meshroom/ui/qml/ImageGallery/ImageGallery.qml +++ b/meshroom/ui/qml/ImageGallery/ImageGallery.qml @@ -48,6 +48,10 @@ Panel { parseIntr() } + function changeCurrentIndex(newIndex) { + _reconstruction.cameraInitIndex = newIndex + } + function populate_model() { intrinsicModel.clear() @@ -539,7 +543,7 @@ Panel { font.family: MaterialIcons.fontFamily ToolTip.text: "Next Group (Alt+Right)" ToolTip.visible: hovered - enabled: root.cameraInitIndex < root.cameraInits.count - 1 + enabled: nodesCB.currentIndex < root.cameraInits.count - 1 onClicked: nodesCB.incrementCurrentIndex() } }