Skip to content

Commit dcf6748

Browse files
authored
Merge pull request #188 from Baljak/fix-node-factory-attributes
Set NodeFactory attributes scope to instance to allow several node graphs
2 parents 39f1f9d + ad658cd commit dcf6748

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

NodeGraphQt/base/factory.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ class NodeFactory(object):
88
Node factory that stores all the node types.
99
"""
1010

11-
__aliases = {}
12-
__names = {}
13-
__nodes = {}
11+
def __init__(self):
12+
self.__aliases = {}
13+
self.__names = {}
14+
self.__nodes = {}
1415

1516
@property
1617
def names(self):

0 commit comments

Comments
 (0)