mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-28 00:16:32 +02:00
[core] Graph: avoid double update while adding/removing an edge
Graph.markNodesDirty() is called in three different places: - Attribute.requestGraphUpdate() - Graph.addEdge() - Graph.removeEdge() However, addEdge() and removeEdge() are especially decorated to request a graph update so, with the old markNodesDirty() implementation, the update was done twice in a row.
This commit is contained in:
parent
06b821349f
commit
74fa3022fe
2 changed files with 2 additions and 2 deletions
|
@ -142,6 +142,7 @@ class Attribute(BaseObject):
|
|||
def requestGraphUpdate(self):
|
||||
if self.node.graph:
|
||||
self.node.graph.markNodesDirty(self.node)
|
||||
self.node.graph.update()
|
||||
|
||||
@property
|
||||
def isOutput(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue