[ui] ImageGallery: Allow image drop if the active group is not computing

The Image Gallery should only switch to read-only if the currently active
group is being computed. The behaviour prior to this commit was to lock it
as soon as any node in the entire graph was being computed, even if it did
not involve the active CameraInit node.
This commit is contained in:
Candice Bentéjac 2023-03-21 12:47:46 +01:00
parent ba0541c791
commit 7488ee2f7e

View file

@ -39,7 +39,7 @@ Panel {
property variant currentCameraInit: _reconstruction && _reconstruction.tempCameraInit ? _reconstruction.tempCameraInit : root.cameraInit
property variant viewpoints: currentCameraInit ? currentCameraInit.attribute('viewpoints').value : undefined
property variant intrinsics: currentCameraInit ? currentCameraInit.attribute('intrinsics').value : undefined
property bool readOnly: root.readOnly || displayHDR.checked
property bool readOnly: ((_reconstruction && currentCameraInit) ? currentCameraInit.locked : root.readOnly) || displayHDR.checked
onViewpointsChanged: {
ThumbnailCache.clearRequests()