Functions which doesn't require inputs will now run with data selected
This commit is contained in:
parent
fb7128138e
commit
338778d7b1
|
@ -177,10 +177,11 @@ class WorkflowView (gtk.VBox):
|
||||||
|
|
||||||
argcount =function.run.func_code.co_argcount - 1
|
argcount =function.run.func_code.co_argcount - 1
|
||||||
|
|
||||||
if argcount != len(parent_data):
|
if argcount != len(parent_data) and argcount != 0:
|
||||||
logger.log('warning','Method requires ' + str(argcount) + ' Data. ' + str(len(parent_data)) + ' selected')
|
logger.log('warning','Method requires ' + str(argcount) + ' Data. ' + str(len(parent_data)) + ' selected')
|
||||||
return
|
return
|
||||||
if not project.current_data:
|
|
||||||
|
if not project.current_data or argcount == 0:
|
||||||
new_data = function.run()
|
new_data = function.run()
|
||||||
else:
|
else:
|
||||||
new_data = function.run(*project.current_data)
|
new_data = function.run(*project.current_data)
|
||||||
|
|
Reference in New Issue