Skip to content

Commit

Permalink
[ui] Fix Collapse error
Browse files Browse the repository at this point in the history
It comes from the update of the edges so we need to update the array of allSrc correctly.
  • Loading branch information
Just-Kiel committed Sep 2, 2024
1 parent 36842ff commit 475f733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshroom/ui/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,8 @@ def collapseForLoop(self, currentEdge):
occurence = allSrc.index(listAttribute.at(i)) if listAttribute.at(i) in allSrc else -1
if occurence != -1:
self.removeNodesFrom(self.graph.edges.at(occurence).dst.node)
# remove the edge from allSrc
allSrc.pop(occurence)
# update the edges from allSrc
allSrc = [e.src for e in self._graph.edges.values()]


@Slot(QObject)
Expand Down

0 comments on commit 475f733

Please sign in to comment.