We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
canExpandForLoop
ListAttribute
1 parent 1c7482a commit ed4dc3fCopy full SHA for ed4dc3f
meshroom/ui/graph.py
@@ -753,7 +753,8 @@ def duplicateNodesFrom(self, nodes):
753
def canExpandForLoop(self, currentEdge):
754
""" Check if the list attribute can be expanded by looking at all the edges connected to it. """
755
listAttribute = currentEdge.src.root
756
- if not listAttribute:
+ # Check that the parent is indeed a ListAttribute (it could be a GroupAttribute, for instance)
757
+ if not listAttribute or not isinstance(listAttribute, ListAttribute):
758
return False
759
srcIndex = listAttribute.index(currentEdge.src)
760
allSrc = [e.src for e in self._graph.edges.values()]
0 commit comments