mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-12 15:52:07 +02:00
[core] sort nodes by name in file export
Avoid randomness in the ordering during file export to facilitate comparison of scene files.
This commit is contained in:
parent
3c4ebd9b25
commit
620ba0c2cf
1 changed files with 3 additions and 1 deletions
|
@ -1278,7 +1278,9 @@ class Graph(BaseObject):
|
||||||
node._applyExpr()
|
node._applyExpr()
|
||||||
|
|
||||||
def toDict(self):
|
def toDict(self):
|
||||||
return {k: node.toDict() for k, node in self._nodes.objects.items()}
|
nodes = {k: node.toDict() for k, node in self._nodes.objects.items()}
|
||||||
|
nodes = dict(sorted(nodes.items()))
|
||||||
|
return nodes
|
||||||
|
|
||||||
@Slot(result=str)
|
@Slot(result=str)
|
||||||
def asString(self):
|
def asString(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue