mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +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,8 +258,9 @@ class Graph(BaseObject):
|
|||
self._deserialize(Graph._loadGraphData(filepath))
|
||||
|
||||
if not publishOutputs:
|
||||
for node in [node for node in self.nodes if node.nodeType == "Publish"]:
|
||||
self.removeNode(node.name)
|
||||
with GraphModification(self):
|
||||
for node in [node for node in self.nodes if node.nodeType == "Publish"]:
|
||||
self.removeNode(node.name)
|
||||
|
||||
@staticmethod
|
||||
def _loadGraphData(filepath: PathLike) -> dict:
|
||||
|
|
Loading…
Add table
Reference in a new issue