[ui] ImageGallery: update scene when the selected ldr2hdr node changed

This commit is contained in:
Fabien Castan 2020-03-26 14:30:50 +01:00
parent 2f17e9aa80
commit 505f0c68ee

View file

@ -357,6 +357,13 @@ Panel {
text: MaterialIcons.hdr_on
visible: _reconstruction.ldr2hdr
enabled: _reconstruction.ldr2hdr && _reconstruction.ldr2hdr.isComputed
property string nodeID: _reconstruction.ldr2hdr.label + _reconstruction.ldr2hdr.isComputed
onNodeIDChanged: {
if(checked)
{
_reconstruction.setupLDRToHDRCameraInit();
}
}
onEnabledChanged: {
// Reset the toggle to avoid getting stuck
// with the HDR node checked but disabled.