mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-12 07:42:04 +02:00
[ui] Viewer2D: fisheye circle is enabled only when the option is activated
This commit is contained in:
parent
7b8405c5f6
commit
b98c1e57ed
1 changed files with 4 additions and 3 deletions
|
@ -253,7 +253,8 @@ FocusScope {
|
||||||
sourceComponent: CircleGizmo {
|
sourceComponent: CircleGizmo {
|
||||||
x: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_x").value
|
x: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_x").value
|
||||||
y: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_y").value
|
y: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_y").value
|
||||||
radius: (imgContainer.image ? Math.min(imgContainer.image.width, imgContainer.image.height) : 1.0) * 0.5 * (_reconstruction.panoramaInit.attribute("fisheyeRadius").value * 0.01)
|
property real fisheyeRadius: _reconstruction.panoramaInit.attribute("fisheyeRadius").value
|
||||||
|
radius: (imgContainer.image ? Math.min(imgContainer.image.width, imgContainer.image.height) : 1.0) * 0.5 * (fisheyeRadius * 0.01)
|
||||||
border.width: Math.max(1, (3.0 / imgContainer.scale))
|
border.width: Math.max(1, (3.0 / imgContainer.scale))
|
||||||
|
|
||||||
onMoved: {
|
onMoved: {
|
||||||
|
@ -411,8 +412,8 @@ FocusScope {
|
||||||
Layout.minimumWidth: 0
|
Layout.minimumWidth: 0
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: false
|
checked: false
|
||||||
enabled: _reconstruction.panoramaInit
|
enabled: _reconstruction.panoramaInit && _reconstruction.panoramaInit.attribute("useFisheye").value
|
||||||
visible: enabled
|
visible: _reconstruction.panoramaInit
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue