Skip to content

Commit 21c7ee6

Browse files
author
Fabien Servant
committed
use scale instead of targetSize
1 parent ea92b72 commit 21c7ee6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meshroom/ui/qml/Viewer/Viewer2D.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ FocusScope {
476476
property int previousWidth: 0
477477
property int previousHeight: 0
478478
property real targetSize: Math.max(width, height) * imgContainer.scale
479+
property real resizeRatio: imgContainer.scale
479480
onHeightChanged: {
480481
/* Image size is not updated through a single signal with the floatImage viewer, unlike
481482
* the simple QML image viewer: instead of updating straight away the width and height to x and
@@ -519,6 +520,7 @@ FocusScope {
519520
'idView': Qt.binding(function() { return ((root.displayedNode && !root.displayedNode.hasSequenceOutput && _reconstruction) ? _reconstruction.selectedViewId : -1) }),
520521
'cropFisheye': false,
521522
'sequence': Qt.binding(function() { return ((root.enableSequencePlayer && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput))) ? getSequence() : []) }),
523+
'resizeRatio': Qt.binding(function() { return floatImageViewerLoader.resizeRatio }),
522524
'targetSize': Qt.binding(function() { return floatImageViewerLoader.targetSize }),
523525
'useSequence': Qt.binding(function() {
524526
return (root.enableSequencePlayer && !useExternal && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput && (displayedAttr.desc.semantic === "imageList" || displayedAttr.desc.semantic === "sequence"))))

0 commit comments

Comments
 (0)