Skip to content

Commit ca76ea0

Browse files
committed
[ui] Graph.canExpandForLoop: fix corner case
1 parent 2dc06ca commit ca76ea0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meshroom/ui/graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,8 @@ def duplicateNodesFrom(self, nodes):
748748
def canExpandForLoop(self, currentEdge):
749749
""" Check if the list attribute can be expanded by looking at all the edges connected to it. """
750750
listAttribute = currentEdge.src.root
751+
if not listAttribute:
752+
return False
751753
srcIndex = listAttribute.index(currentEdge.src)
752754
allSrc = [e.src for e in self._graph.edges.values()]
753755
for i in range(len(listAttribute)):

0 commit comments

Comments
 (0)