Browse Source

in report print return val unless it's None

Josh Wilson 16 years ago
parent
commit
1f4bc1cc1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/showbase/PythonUtil.py

+ 1 - 1
direct/src/showbase/PythonUtil.py

@@ -3343,7 +3343,7 @@ def report(types = [], prefix = '', xform = None, notifyFunc = None, dConfigPara
                 rVal = f(*args,**kwargs)
             finally:
                 __report_indent -= 1
-                if rVal:
+                if rVal is not None:
                     print indent(' -> '+repr(rVal))
                     pass
                 pass