mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-12 22:37:21 +02:00
[core] plugins: Rename getNodePlugin...
to getRegisteredNodePlugin...
This prevents ambiguities between `NodePlugin` objects that have been registered (and are thus instantiable) and those that belong to `Plugin` objects but have not been registered.
This commit is contained in:
parent
c16b56c7e3
commit
98d90dae81
7 changed files with 17 additions and 17 deletions
|
@ -262,14 +262,14 @@ class NodePluginManager(BaseObject):
|
|||
if not self.getPlugin(plugin.name):
|
||||
self._plugins[plugin.name] = plugin
|
||||
|
||||
def getNodePlugins(self) -> dict[str: NodePlugin]:
|
||||
def getRegisteredNodePlugins(self) -> dict[str: NodePlugin]:
|
||||
"""
|
||||
Return a dictionary containing all the registered NodePlugins, with
|
||||
{key, value} = {name, NodePlugin}.
|
||||
"""
|
||||
return self._nodePlugins
|
||||
|
||||
def getNodePlugin(self, name: str) -> NodePlugin:
|
||||
def getRegisteredNodePlugin(self, name: str) -> NodePlugin:
|
||||
"""
|
||||
Return the NodePlugin object that has been registered under the name "name" if it exists.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue