mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-11 22:07:21 +02:00
[core] Graph: add missing GraphModification
In `initFromTemplate`, ensure that Publish nodes removal are grouped under the same graph modification to trigger updates only once.
This commit is contained in:
parent
25094ac877
commit
724e7fb387
1 changed files with 3 additions and 2 deletions
|
@ -258,6 +258,7 @@ class Graph(BaseObject):
|
|||
self._deserialize(Graph._loadGraphData(filepath))
|
||||
|
||||
if not publishOutputs:
|
||||
with GraphModification(self):
|
||||
for node in [node for node in self.nodes if node.nodeType == "Publish"]:
|
||||
self.removeNode(node.name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue