mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-04 12:46:44 +02:00
[ui] FeaturesViewer: apply container dimensions for correct transform
This commit is contained in:
parent
1e2ab5e53e
commit
a5b2bc5e60
1 changed files with 4 additions and 2 deletions
|
@ -526,6 +526,10 @@ FocusScope {
|
|||
active: displayFeatures.checked
|
||||
property var activeNode: _reconstruction ? _reconstruction.activeNodes.get("FeatureExtraction").node : null
|
||||
|
||||
anchors.centerIn: parent
|
||||
width: imgContainer.width
|
||||
height: imgContainer.height
|
||||
|
||||
// handle rotation/position based on available metadata
|
||||
rotation: {
|
||||
var orientation = m.imgMetadata ? m.imgMetadata["Orientation"] : 0
|
||||
|
@ -535,8 +539,6 @@ FocusScope {
|
|||
default: return 0;
|
||||
}
|
||||
}
|
||||
x: (imgContainer.image && rotation === 90) ? imgContainer.image.paintedWidth : 0
|
||||
y: (imgContainer.image && rotation === -90) ? imgContainer.image.paintedHeight : 0
|
||||
|
||||
onActiveChanged: {
|
||||
if(active) {
|
||||
|
|
Loading…
Add table
Reference in a new issue