[ui] WorkspaceView: use activeNodes for sfm

This commit is contained in:
Fabien Castan 2020-07-25 18:27:33 +02:00
parent cfbd5a3610
commit bac6ffe8f2

View file

@ -44,9 +44,10 @@ Item {
// Load reconstruction's current SfM file // Load reconstruction's current SfM file
function viewSfM() { function viewSfM() {
if(!reconstruction.sfm) var activeNode = _reconstruction.activeNodes.get('sfm').node;
if(!activeNode)
return; return;
viewer3D.view(reconstruction.sfm.attribute('output')); viewer3D.view(activeNode.attribute('output'));
} }
SystemPalette { id: activePalette } SystemPalette { id: activePalette }