added "clear_registered_nodes" method
Prototyping a plugin node in parallel with NodeGraphQT can cause an "already registered" error if the host application is not closed in between. Calling new method will prevent this.
@@ -76,5 +76,12 @@ class _NodeVendor(object):
'Node Alias: {} already taken!'.format(alias))
self._aliases[alias] = node_type
+ def clear_registered_nodes(self):
+ """
+ clear out registered nodes, to prevent conflicts on reset
+ """
+ self._nodes.clear()
+ self._names.clear()
+ self._aliases.clear()
NodeVendor = _NodeVendor()
