mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-04 20:56:50 +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
|
active: displayFeatures.checked
|
||||||
property var activeNode: _reconstruction ? _reconstruction.activeNodes.get("FeatureExtraction").node : null
|
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
|
// handle rotation/position based on available metadata
|
||||||
rotation: {
|
rotation: {
|
||||||
var orientation = m.imgMetadata ? m.imgMetadata["Orientation"] : 0
|
var orientation = m.imgMetadata ? m.imgMetadata["Orientation"] : 0
|
||||||
|
@ -535,8 +539,6 @@ FocusScope {
|
||||||
default: return 0;
|
default: return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
x: (imgContainer.image && rotation === 90) ? imgContainer.image.paintedWidth : 0
|
|
||||||
y: (imgContainer.image && rotation === -90) ? imgContainer.image.paintedHeight : 0
|
|
||||||
|
|
||||||
onActiveChanged: {
|
onActiveChanged: {
|
||||||
if(active) {
|
if(active) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue