mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-01 03:07:46 +02:00
[ui] MediaLibrary: fix dependencyReady binding
This commit is contained in:
parent
04c21fffe4
commit
65138c67a0
1 changed files with 6 additions and 8 deletions
|
@ -203,14 +203,12 @@ Entity {
|
||||||
property string rawSource: attribute ? attribute.value : model.source
|
property string rawSource: attribute ? attribute.value : model.source
|
||||||
// whether dependencies are statified (applies for output/connected input attributes only)
|
// whether dependencies are statified (applies for output/connected input attributes only)
|
||||||
readonly property bool dependencyReady: {
|
readonly property bool dependencyReady: {
|
||||||
if(!attribute)
|
if(attribute) {
|
||||||
// if the node is removed, the attribute will be invalid
|
const rootAttribute = attribute.isLink ? attribute.rootLinkParam : attribute
|
||||||
return false
|
if(rootAttribute.isOutput)
|
||||||
|
return rootAttribute.node.globalStatus === "SUCCESS"
|
||||||
const rootAttribute = attribute.isLink ? attribute.rootLinkParam : attribute
|
}
|
||||||
if(rootAttribute.isOutput)
|
return true // is an input param without link (so no dependency) or an external file
|
||||||
return rootAttribute.node.globalStatus === "SUCCESS"
|
|
||||||
return true // is an input param so no dependency
|
|
||||||
}
|
}
|
||||||
// source based on raw source + dependency status
|
// source based on raw source + dependency status
|
||||||
property string currentSource: dependencyReady ? rawSource : ""
|
property string currentSource: dependencyReady ? rawSource : ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue