mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
[graph] expose fileReleaseVersion as property
+ clear header in Graph.clear method
This commit is contained in:
parent
ae716602ab
commit
f5820b3eb1
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,7 @@ class Graph(BaseObject):
|
|||
self.header = {}
|
||||
|
||||
def clear(self):
|
||||
self.header.clear()
|
||||
self._nodes.clear()
|
||||
self._edges.clear()
|
||||
|
||||
|
@ -993,6 +994,7 @@ class Graph(BaseObject):
|
|||
edges = Property(BaseObject, edges.fget, constant=True)
|
||||
filepathChanged = Signal()
|
||||
filepath = Property(str, lambda self: self._filepath, notify=filepathChanged)
|
||||
fileReleaseVersion = Property(str, lambda self: self.header.get(Graph.IO.ReleaseVersion, "0.0"), notify=filepathChanged)
|
||||
cacheDirChanged = Signal()
|
||||
cacheDir = Property(str, cacheDir.fget, cacheDir.fset, notify=cacheDirChanged)
|
||||
updated = Signal()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue