mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-27 05:27:28 +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 string channelModeString : "rgba"
|
||||||
|
|
||||||
|
property bool distortion: false
|
||||||
|
|
||||||
|
onDistortionChanged: {
|
||||||
|
console.warn("distortion");
|
||||||
|
root.hasDistortion(distortion);
|
||||||
|
}
|
||||||
|
|
||||||
channelMode: {
|
channelMode: {
|
||||||
switch(channelModeString)
|
switch(channelModeString)
|
||||||
{
|
{
|
||||||
|
|
|
@ -227,6 +227,7 @@ FocusScope {
|
||||||
'isGridDisplayed' : Qt.binding(function(){ return lensDistortionImageToolbar.displayGrid;}),
|
'isGridDisplayed' : Qt.binding(function(){ return lensDistortionImageToolbar.displayGrid;}),
|
||||||
'gridOpacity' : Qt.binding(function(){ return lensDistortionImageToolbar.opacityValue;}),
|
'gridOpacity' : Qt.binding(function(){ return lensDistortionImageToolbar.opacityValue;}),
|
||||||
'gridColor' : Qt.binding(function(){ return lensDistortionImageToolbar.color;}),
|
'gridColor' : Qt.binding(function(){ return lensDistortionImageToolbar.color;}),
|
||||||
|
'distortion' : Qt.binding(function(){ return displayLensDistortionViewer.checked;}),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14
|
// 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