diff --git a/direct/src/showbase/GarbageReport.py b/direct/src/showbase/GarbageReport.py index cb440c8e64..35b6bf4fb7 100755 --- a/direct/src/showbase/GarbageReport.py +++ b/direct/src/showbase/GarbageReport.py @@ -200,7 +200,8 @@ class GarbageReport(Job): if self._args.log: self.printingBegin() for i in xrange(len(self._report)): - yield None + if self.numGarbage > 0: + yield None self.notify.info(self._report[i]) self.printingEnd()