diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-07-15 16:13:43 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-07-15 16:13:43 +0000 |
commit | ad9d49bf213f525d122656fc7dc55287b9ae00f0 (patch) | |
tree | dab21d5be62c5c96a862278e15932c3aabb3c0a8 /externals/grill/py/source/py.cpp | |
parent | 0ba6ec4c3bca4a58f287ecaa50ee116f268459ea (diff) |
None returned by script will bang the output
fixes for atomic pyext._outlet messages
svn path=/trunk/; revision=3346
Diffstat (limited to 'externals/grill/py/source/py.cpp')
-rw-r--r-- | externals/grill/py/source/py.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |