Skip to content

Commit e33b22d

Browse files
committed
[core] Builtins: Added registration mechanism for Builtin plugins
1 parent 03e0133 commit e33b22d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

meshroom/core/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from meshroom.core.submitter import BaseSubmitter
2222
from . import desc
23+
from .desc import builtins
2324

2425
# Setup logging
2526
logging.basicConfig(format='[%(asctime)s][%(levelname)s] %(message)s', level=logging.INFO)
@@ -337,6 +338,9 @@ def initNodes():
337338
for f in nodesFolders:
338339
loadAllNodes(folder=f)
339340

341+
# Load all of the builtin Node Plugins
342+
initBuiltinNodePlugins()
343+
340344

341345
def initSubmitters():
342346
meshroomFolder = os.path.dirname(os.path.dirname(__file__))
@@ -357,3 +361,8 @@ def initPipelines():
357361
loadPipelineTemplates(f)
358362
else:
359363
logging.error("Pipeline templates folder '{}' does not exist.".format(f))
364+
365+
def initBuiltinNodePlugins():
366+
""" Registers the Builtin plugins for Meshroom.
367+
"""
368+
registerNodeType(builtins.Backdrop)

0 commit comments

Comments
 (0)