[core] Replace nodesDesc with the NodePluginManager instance

This commit is contained in:
Candice Bentéjac 2025-05-12 08:23:15 +01:00
parent 4a238b9637
commit 88bee35443
6 changed files with 19 additions and 16 deletions

View file

@ -54,7 +54,9 @@ class _NodeCreator:
self.internalFolder = self.nodeData.get("internalFolder")
self.position = Position(*self.nodeData.get("position", []))
self.uid = self.nodeData.get("uid", None)
self.nodeDesc = meshroom.core.nodesDesc.get(self.nodeType, None)
self.nodeDesc = None
if meshroom.core.pluginManager.isRegistered(self.nodeType):
self.nodeDesc = meshroom.core.pluginManager.getNodePlugin(self.nodeType).nodeDescriptor
def create(self) -> Union[Node, CompatibilityNode]:
compatibilityIssue = self._checkCompatibilityIssues()