mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-10 05:17:24 +02:00
Merge pull request #1744 from alicevision/dev/internalAttributes
Add internal attributes in "Notes" tab
This commit is contained in:
commit
ce2085faad
10 changed files with 471 additions and 25 deletions
|
@ -264,11 +264,17 @@ class SetAttributeCommand(GraphCommand):
|
|||
def redoImpl(self):
|
||||
if self.value == self.oldValue:
|
||||
return False
|
||||
self.graph.attribute(self.attrName).value = self.value
|
||||
if self.graph.attribute(self.attrName) is not None:
|
||||
self.graph.attribute(self.attrName).value = self.value
|
||||
else:
|
||||
self.graph.internalAttribute(self.attrName).value = self.value
|
||||
return True
|
||||
|
||||
def undoImpl(self):
|
||||
self.graph.attribute(self.attrName).value = self.oldValue
|
||||
if self.graph.attribute(self.attrName) is not None:
|
||||
self.graph.attribute(self.attrName).value = self.oldValue
|
||||
else:
|
||||
self.graph.internalAttribute(self.attrName).value = self.oldValue
|
||||
|
||||
|
||||
class AddEdgeCommand(GraphCommand):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue