From 45da6684cbe9bd2fe199b0fd75a40f1c219b6341 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 20 Sep 2005 20:50:40 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=3607 --- externals/grill/py/source/pyext.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'externals/grill/py/source/pyext.cpp') diff --git a/externals/grill/py/source/pyext.cpp b/externals/grill/py/source/pyext.cpp index dd4b5a67..633d4007 100644 --- a/externals/grill/py/source/pyext.cpp +++ b/externals/grill/py/source/pyext.cpp @@ -207,14 +207,13 @@ bool pyext::Init() else inlets = outlets = 0; - if(inlets < 0 || outlets < 0) - InitProblem(); - else { - AddInSignal(siginlets); - AddInAnything((siginlets?0:1)+inlets); - AddOutSignal(sigoutlets); - AddOutAnything(outlets); - } + if(inlets < 0) inlets = 0; + if(outlets < 0) outlets = 0; + + AddInSignal(siginlets); + AddInAnything((siginlets?0:1)+inlets); + AddOutSignal(sigoutlets); + AddOutAnything(outlets); Report(); PyUnlock(state); -- cgit v1.2.1