[Float Image Viewer] fix viewer condition issues due to last commit

This commit is contained in:
Thomas Zorroche 2021-06-11 10:15:07 +02:00 committed by Fabien Castan
parent b81e68523f
commit 7e1bff048c

View file

@ -30,7 +30,7 @@ AliceVision.FloatImageViewer {
}
onStatusChanged: {
if (isPanoViewer) {
if (viewerTypeString === "panorama") {
// Force to update the surface grid after a downscale change
surface.rotateSurfaceRadians(0, 0)
}
@ -124,13 +124,13 @@ AliceVision.FloatImageViewer {
x: 0
y: 0
color: "red"
visible: isDistoViewer && isPrincipalPointsDisplayed
visible: viewerTypeString === "distortion" && isPrincipalPointsDisplayed
}
Connections {
target: root
onSfmChanged: {
if (isDistoViewer)
if (viewerTypeString === "distortion")
updatePrincipalPoint();
}
}