From ad9d49bf213f525d122656fc7dc55287b9ae00f0 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 15 Jul 2005 16:13:43 +0000 Subject: None returned by script will bang the output fixes for atomic pyext._outlet messages svn path=/trunk/; revision=3346 --- externals/grill/py/source/py.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'externals/grill/py/source/py.cpp') diff --git a/externals/grill/py/source/py.cpp b/externals/grill/py/source/py.cpp index 7cb7fa97..da9459fe 100644 --- a/externals/grill/py/source/py.cpp +++ b/externals/grill/py/source/py.cpp @@ -125,7 +125,7 @@ pyobj::pyobj(int argc,const t_atom *argv) int inlets; if(argc && CanbeInt(*argv)) { inlets = GetAInt(*argv); - if(inlets < 1) inlets = 1; + if(inlets < 0) inlets = 1; argv++,argc--; } else @@ -352,7 +352,7 @@ bool pyobj::callpy(PyObject *fun,PyObject *args) return false; } else { - if(ret != Py_None && !OutObject(this,0,ret) && PyErr_Occurred()) + if(!OutObject(this,0,ret) && PyErr_Occurred()) PyErr_Print(); Py_DECREF(ret); return true; @@ -384,7 +384,7 @@ bool pyobj::CbMethodResort(int n,const t_symbol *s,int argc,const t_atom *argv) PyObject *pargs; - if(objects) { + if(objects || CntIn() == 1) { int inlets = CntIn()-1; pargs = PyTuple_New(inlets); for(int i = 0; i < inlets; ++i) { -- cgit v1.2.1