mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-25 20:47:39 +02:00
[Lens Distortion] Display grid only in Distortion Mode
This commit is contained in:
parent
b7bd86f120
commit
11e93fd50c
2 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,13 @@ AliceVision.FloatImageViewer {
|
|||
|
||||
property string channelModeString : "rgba"
|
||||
|
||||
property bool distortion: false
|
||||
|
||||
onDistortionChanged: {
|
||||
console.warn("distortion");
|
||||
root.hasDistortion(distortion);
|
||||
}
|
||||
|
||||
channelMode: {
|
||||
switch(channelModeString)
|
||||
{
|
||||
|
|
|
@ -227,6 +227,7 @@ FocusScope {
|
|||
'isGridDisplayed' : Qt.binding(function(){ return lensDistortionImageToolbar.displayGrid;}),
|
||||
'gridOpacity' : Qt.binding(function(){ return lensDistortionImageToolbar.opacityValue;}),
|
||||
'gridColor' : Qt.binding(function(){ return lensDistortionImageToolbar.color;}),
|
||||
'distortion' : Qt.binding(function(){ return displayLensDistortionViewer.checked;}),
|
||||
})
|
||||
} else {
|
||||
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue