From 3857daa4e4d823683ba804571adf1d0942d7775c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Tue, 10 Jun 2025 14:42:44 +0200 Subject: [PATCH] [core] desc.node: Add reference to containing plugin in `desc.BaseNode` --- meshroom/core/desc/node.py | 5 +++-- meshroom/core/plugins.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meshroom/core/desc/node.py b/meshroom/core/desc/node.py index 4d940c75..4692a00a 100644 --- a/meshroom/core/desc/node.py +++ b/meshroom/core/desc/node.py @@ -78,8 +78,9 @@ class BaseNode(object): outputs = [] size = StaticNodeSize(1) parallelization = None - documentation = '' - category = 'Other' + documentation = "" + category = "Other" + plugin = None def __init__(self): super(BaseNode, self).__init__() diff --git a/meshroom/core/plugins.py b/meshroom/core/plugins.py index a25ff556..c7bb1cdb 100644 --- a/meshroom/core/plugins.py +++ b/meshroom/core/plugins.py @@ -193,6 +193,7 @@ class NodePlugin(BaseObject): self.plugin: Plugin = plugin self.path: str = Path(getfile(nodeDesc)).resolve().as_posix() self.nodeDescriptor: desc.Node = nodeDesc + self.nodeDescriptor.plugin = self self.status: NodePluginStatus = NodePluginStatus.NOT_LOADED self.errors: list[str] = validateNodeDesc(nodeDesc)