mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 12:21:59 +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 {
|
||||
x: _reconstruction.panoramaInit.attribute("fisheyeCenterOffset.fisheyeCenterOffset_x").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))
|
||||
|
||||
onMoved: {
|
||||
|
@ -411,8 +412,8 @@ FocusScope {
|
|||
Layout.minimumWidth: 0
|
||||
checkable: true
|
||||
checked: false
|
||||
enabled: _reconstruction.panoramaInit
|
||||
visible: enabled
|
||||
enabled: _reconstruction.panoramaInit && _reconstruction.panoramaInit.attribute("useFisheye").value
|
||||
visible: _reconstruction.panoramaInit
|
||||
}
|
||||
|
||||
Label {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue