[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:
Yann Lanthony 2025-02-06 16:46:04 +01:00
parent 3064cb9b35
commit a665200c38
4 changed files with 76 additions and 63 deletions

View file

@ -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()