mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-27 05:27:28 +02:00
[ui] Graph.canExpandForLoop: fix corner case
This commit is contained in:
parent
2456350dc5
commit
f84654b2ae
1 changed files with 2 additions and 0 deletions
|
@ -753,6 +753,8 @@ class UIGraph(QObject):
|
||||||
def canExpandForLoop(self, currentEdge):
|
def canExpandForLoop(self, currentEdge):
|
||||||
""" Check if the list attribute can be expanded by looking at all the edges connected to it. """
|
""" Check if the list attribute can be expanded by looking at all the edges connected to it. """
|
||||||
listAttribute = currentEdge.src.root
|
listAttribute = currentEdge.src.root
|
||||||
|
if not listAttribute:
|
||||||
|
return False
|
||||||
srcIndex = listAttribute.index(currentEdge.src)
|
srcIndex = listAttribute.index(currentEdge.src)
|
||||||
allSrc = [e.src for e in self._graph.edges.values()]
|
allSrc = [e.src for e in self._graph.edges.values()]
|
||||||
for i in range(len(listAttribute)):
|
for i in range(len(listAttribute)):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue