From 1ec8c9c7ad730d621bafd5b8f515c82a220cf389 Mon Sep 17 00:00:00 2001 From: Aurore LAFAURIE Date: Mon, 2 Sep 2024 13:17:31 +0200 Subject: [PATCH] [ui] Fix Collapse error It comes from the update of the edges so we need to update the array of allSrc correctly. --- meshroom/ui/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshroom/ui/graph.py b/meshroom/ui/graph.py index 6e1b3f891b..448f25484a 100644 --- a/meshroom/ui/graph.py +++ b/meshroom/ui/graph.py @@ -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)