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 e253d1a commit f81b14b
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 @@ -788,8 +788,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 f81b14b

Please sign in to comment.