Skip to content

Commit 475f733

Browse files
committed
[ui] Fix Collapse error
It comes from the update of the edges so we need to update the array of allSrc correctly.
1 parent 36842ff commit 475f733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meshroom/ui/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,8 @@ def collapseForLoop(self, currentEdge):
793793
occurence = allSrc.index(listAttribute.at(i)) if listAttribute.at(i) in allSrc else -1
794794
if occurence != -1:
795795
self.removeNodesFrom(self.graph.edges.at(occurence).dst.node)
796-
# remove the edge from allSrc
797-
allSrc.pop(occurence)
796+
# update the edges from allSrc
797+
allSrc = [e.src for e in self._graph.edges.values()]
798798

799799

800800
@Slot(QObject)

0 commit comments

Comments
 (0)