Skip to content

Commit ac7aedd

Browse files
Just-Kielcbentejac
authored andcommitted
[ui] Clean up for displayedAttr use instead
1 parent a5d5c94 commit ac7aedd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

meshroom/ui/qml/Viewer/Viewer2D.qml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ FocusScope {
508508
'sequence': Qt.binding(function() { return ((root.enableSequencePlayer && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput))) ? getSequence() : []) }),
509509
'targetSize': Qt.binding(function() { return floatImageViewerLoader.targetSize }),
510510
'useSequence': Qt.binding(function() {
511-
let attr = root.displayedNode ? root.displayedNode.attributes.get(outputAttribute.name) : undefined
512-
return (root.enableSequencePlayer && !useExternal && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput)) && (attr.desc.semantic === "imageList" || attr.desc.semantic === "sequence"))
511+
return (root.enableSequencePlayer && !useExternal && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput && (displayedAttr.desc.semantic === "imageList" || displayedAttr.desc.semantic === "sequence"))))
513512
}),
514513
'fetchingSequence': Qt.binding(function() { return sequencePlayer.loading }),
515514
'memoryLimit': Qt.binding(function() { return sequencePlayer.settings_SequencePlayer.maxCacheMemory }),

0 commit comments

Comments
 (0)