Skip to content

Commit

Permalink
Merge pull request #1679 from alicevision/fix/imageGalleryInitNodes
Browse files Browse the repository at this point in the history
[ui] ImageGallery: fix missing function changeCurrentIndex
  • Loading branch information
fabiencastan authored Jun 1, 2022
2 parents d1960c1 + 5829206 commit 81eb338
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meshroom/ui/qml/ImageGallery/ImageGallery.qml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Panel {
parseIntr()
}

function changeCurrentIndex(newIndex) {
_reconstruction.cameraInitIndex = newIndex
}

function populate_model()
{
intrinsicModel.clear()
Expand Down Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 81eb338

Please sign in to comment.