Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alicevision/meshroom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meshroom/ui/qml/Viewer/Viewer2D.qml7
-rwxr-xr-xmeshroom/ui/qml/main.qml2
2 files changed, 5 insertions, 4 deletions
diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml
index f2b6bc8e..e47c6bf9 100644
--- a/meshroom/ui/qml/Viewer/Viewer2D.qml
+++ b/meshroom/ui/qml/Viewer/Viewer2D.qml
@@ -157,12 +157,12 @@ FocusScope {
function tryLoadNode(node) {
// safety check
if (!node) {
- return;
+ return false;
}
// node must be computed or at least running
if (!node.isFinishedOrRunning()) {
- return;
+ return false;
}
// node must have at least one output attribute with the image semantic
@@ -175,10 +175,11 @@ FocusScope {
}
}
if (!hasImageOutputAttr) {
- return;
+ return false;
}
displayedNode = node;
+ return true;
}
function getImageFile() {
diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml
index 2967671c..9820dee5 100755
--- a/meshroom/ui/qml/main.qml
+++ b/meshroom/ui/qml/main.qml
@@ -858,7 +858,7 @@ ApplicationWindow {
// 3D viewer
for (var i = 0; i < node.attributes.count; i++) {
var attr = node.attributes.at(i)
- if(attr.isOutput && workspaceView.viewIn3D(attr, mouse))
+ if(attr.isOutput && attr.desc.semantic != "image" && workspaceView.viewIn3D(attr, mouse))
break;
}
}