From ac7aeddb45692be0d761a1af764bc811e30c979a Mon Sep 17 00:00:00 2001 From: Aurore LAFAURIE Date: Thu, 20 Jun 2024 14:41:15 +0200 Subject: [PATCH] [ui] Clean up for displayedAttr use instead --- meshroom/ui/qml/Viewer/Viewer2D.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml index 223a5ff1..c3a61a5a 100644 --- a/meshroom/ui/qml/Viewer/Viewer2D.qml +++ b/meshroom/ui/qml/Viewer/Viewer2D.qml @@ -508,8 +508,7 @@ FocusScope { 'sequence': Qt.binding(function() { return ((root.enableSequencePlayer && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput))) ? getSequence() : []) }), 'targetSize': Qt.binding(function() { return floatImageViewerLoader.targetSize }), 'useSequence': Qt.binding(function() { - let attr = root.displayedNode ? root.displayedNode.attributes.get(outputAttribute.name) : undefined - return (root.enableSequencePlayer && !useExternal && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput)) && (attr.desc.semantic === "imageList" || attr.desc.semantic === "sequence")) + return (root.enableSequencePlayer && !useExternal && (_reconstruction || (root.displayedNode && root.displayedNode.hasSequenceOutput && (displayedAttr.desc.semantic === "imageList" || displayedAttr.desc.semantic === "sequence")))) }), 'fetchingSequence': Qt.binding(function() { return sequencePlayer.loading }), 'memoryLimit': Qt.binding(function() { return sequencePlayer.settings_SequencePlayer.maxCacheMemory }),