Skip to content

Commit 690e46e

Browse files
committed
bug fix
1 parent 4418b61 commit 690e46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NodeGraphQt/base/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def add_input(self, name='input', multi_input=False, display_name=True,
784784
'port name "{}" already registered.'.format(name))
785785

786786
port_args = [name, multi_input, display_name]
787-
if painter_func and not callable(painter_func):
787+
if painter_func and callable(painter_func):
788788
port_args.append(painter_func)
789789
view = self.view.add_input(*port_args)
790790

0 commit comments

Comments
 (0)