Skip to content

Commit 4307383

Browse files
author
Leandro Inocencio
committed
fix
1 parent 1191a57 commit 4307383

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

example_nodes/logic_nodes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def __init__(self):
6565
'Functions',
6666
items=list(self.logics.keys()),
6767
tab='widgets')
68-
self.func = logics['and']
68+
69+
self.func = self.logics['and']
6970
# switch math function type
7071
self.view.widgets['funcs'].value_changed.connect(self.addFunction)
7172
self.view.widgets['funcs'].value_changed.connect(self.update_streams)
@@ -74,7 +75,7 @@ def addFunction(self, prop, func):
7475
"""
7576
Create inputs based on math functions arguments.
7677
"""
77-
self.func = logics[func]
78+
self.func = self.logics[func]
7879
if self.b.visible() and not 'b' in self.func:
7980
self.b.set_visible(False)
8081
elif not self.b.visible():

0 commit comments

Comments
 (0)