mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-03 11:21:52 +02:00
[core] Introducing new graphIO module
Move Graph.IO internal class to its own module, and rename it to `GraphIO`. This avoid nested classes within the core Graph class, and starts decoupling the management of graph's IO from the logic of the graph itself.
This commit is contained in:
parent
3064cb9b35
commit
a665200c38
4 changed files with 76 additions and 63 deletions
|
@ -25,6 +25,7 @@ from meshroom.core import sessionUid
|
|||
from meshroom.common.qt import QObjectListModel
|
||||
from meshroom.core.attribute import Attribute, ListAttribute
|
||||
from meshroom.core.graph import Graph, Edge
|
||||
from meshroom.core.graphIO import GraphIO
|
||||
|
||||
from meshroom.core.taskManager import TaskManager
|
||||
|
||||
|
@ -396,7 +397,7 @@ class UIGraph(QObject):
|
|||
self.updateChunks()
|
||||
|
||||
# perform auto-layout if graph does not provide nodes positions
|
||||
if Graph.IO.Features.NodesPositions not in self._graph.fileFeatures:
|
||||
if GraphIO.Features.NodesPositions not in self._graph.fileFeatures:
|
||||
self._layout.reset()
|
||||
# clear undo-stack after layout
|
||||
self._undoStack.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue