mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[core] plugins: Reassign plugin to nodeDescriptor
when reloading NodePlugin
Otherwise, `node.nodeDesc.plugin` will evaluate to `None` after the node has been reloaded.
This commit is contained in:
parent
ccf82d0f18
commit
923be8dc11
1 changed files with 1 additions and 0 deletions
|
@ -362,6 +362,7 @@ class NodePlugin(BaseObject):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self.nodeDescriptor = descriptor
|
self.nodeDescriptor = descriptor
|
||||||
|
self.nodeDescriptor.plugin = self
|
||||||
self._timestamp = timestamp
|
self._timestamp = timestamp
|
||||||
self.status = NodePluginStatus.NOT_LOADED
|
self.status = NodePluginStatus.NOT_LOADED
|
||||||
logging.info(f"[Reload] {self.nodeDescriptor.__name__}: Successful reloading.")
|
logging.info(f"[Reload] {self.nodeDescriptor.__name__}: Successful reloading.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue