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