diff --git a/meshroom/ui/qml/WorkspaceView.qml b/meshroom/ui/qml/WorkspaceView.qml index 4caafc02..cdd5642a 100644 --- a/meshroom/ui/qml/WorkspaceView.qml +++ b/meshroom/ui/qml/WorkspaceView.qml @@ -44,9 +44,10 @@ Item { // Load reconstruction's current SfM file function viewSfM() { - if(!reconstruction.sfm) + var activeNode = _reconstruction.activeNodes.get('sfm').node; + if(!activeNode) return; - viewer3D.view(reconstruction.sfm.attribute('output')); + viewer3D.view(activeNode.attribute('output')); } SystemPalette { id: activePalette }