From f84654b2ae52007769b86936c006f049b4e67553 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Wed, 21 Aug 2024 00:32:29 +0200 Subject: [PATCH] [ui] Graph.canExpandForLoop: fix corner case --- meshroom/ui/graph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meshroom/ui/graph.py b/meshroom/ui/graph.py index 0183828c..8883f2cf 100644 --- a/meshroom/ui/graph.py +++ b/meshroom/ui/graph.py @@ -753,6 +753,8 @@ class UIGraph(QObject): def canExpandForLoop(self, currentEdge): """ Check if the list attribute can be expanded by looking at all the edges connected to it. """ listAttribute = currentEdge.src.root + if not listAttribute: + return False srcIndex = listAttribute.index(currentEdge.src) allSrc = [e.src for e in self._graph.edges.values()] for i in range(len(listAttribute)):