[Panorama Viewer] Change sfm filepath handling in mSfMData object

Change sfm filepath handling to avoid errors with nodes that have an output named "outSfMData"
This commit is contained in:
Landrodie 2021-07-21 15:49:21 +02:00 committed by Fabien Castan
parent f37166dae6
commit 6cd64b9614

View file

@ -607,7 +607,18 @@ FocusScope {
}
}
property bool isComputed: activeNode && activeNode.isComputed
property string filepath: Filepath.stringToUrl(isComputed ? activeNode.attribute("output").value : "")
property string filepath: {
var sfmValue = ""
if(!isComputed){
return Filepath.stringToUrl(sfmValue)
}
else{
if(activeNode.hasAttribute("output")){
sfmValue = activeNode.attribute("output").value
}
return Filepath.stringToUrl(sfmValue)
}
}
active: false
// It takes time to load tracks, so keep them looaded, if we may use it again.