mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 18:31:58 +02:00
[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:
parent
f37166dae6
commit
6cd64b9614
1 changed files with 12 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue