mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-04 20:01:58 +02:00
[core][graphIO] Add "template" as an explicit key
This commit is contained in:
parent
b07dd64c11
commit
1cf0fc95ba
2 changed files with 4 additions and 3 deletions
|
@ -24,6 +24,7 @@ class GraphIO:
|
|||
ReleaseVersion = "releaseVersion"
|
||||
FileVersion = "fileVersion"
|
||||
Graph = "graph"
|
||||
Template = "template"
|
||||
|
||||
class Features(Enum):
|
||||
"""File Features."""
|
||||
|
@ -122,7 +123,7 @@ class TemplateGraphSerializer(GraphSerializer):
|
|||
|
||||
def serializeHeader(self) -> dict:
|
||||
header = super().serializeHeader()
|
||||
header["template"] = True
|
||||
header[GraphIO.Keys.Template] = True
|
||||
return header
|
||||
|
||||
def serializeNode(self, node: Node) -> dict:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue