[ui] 3D image overlay: use autoTransform to avoid shrinking when resizing viewer

This commit is contained in:
mugulmd 2023-02-09 03:45:13 -08:00
parent a52aeabedb
commit aea6eb19ab
2 changed files with 2 additions and 5 deletions

View file

@ -55,6 +55,7 @@ Item {
visible: false
// Preserver aspect fit while display ratio is aligned with image ratio, crop otherwise
fillMode: width/height >= imageRatio ? Image.PreserveAspectFit : Image.PreserveAspectCrop
autoTransform: true
}

View file

@ -274,14 +274,10 @@ FocusScope {
}
// Image overlay when navigating reconstructed cameras
ExifOrientedViewer {
Loader {
id: imageOverlayLoader
anchors.fill: parent
orientationTag: root.viewpoint ? root.viewpoint.orientation.toString() : "1"
xOrigin: width * 0.5
yOrigin: height * 0.5
active: doSyncViewpointCamera
visible: Viewer3DSettings.showViewpointImageOverlay