Răsfoiți Sursa

remove silly warning

David Rose 22 ani în urmă
părinte
comite
fcb41afd31
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      direct/src/interval/SoundInterval.py

+ 2 - 2
direct/src/interval/SoundInterval.py

@@ -35,8 +35,8 @@ class SoundInterval(Interval.Interval):
         # If no duration given use sound's duration as interval's duration
         # If no duration given use sound's duration as interval's duration
         if float(duration) == 0.0 and self.sound != None:
         if float(duration) == 0.0 and self.sound != None:
             duration = max(self.sound.length() - self.startTime, 0)
             duration = max(self.sound.length() - self.startTime, 0)
-            if (duration == 0):
-                self.notify.warning('zero length duration!')
+            #if (duration == 0):
+            #    self.notify.warning('zero length duration!')
             # MPG - hack for Miles bug
             # MPG - hack for Miles bug
             #duration += 1.5
             #duration += 1.5
             # DCR - hack for Miles bug - adding 1.5 seconds caused
             # DCR - hack for Miles bug - adding 1.5 seconds caused