mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
fix for negative sound duration problem]
This commit is contained in:
parent
af4c7fd215
commit
d78a078649
@ -32,7 +32,7 @@ class SoundInterval(Interval.Interval):
|
||||
self.startTime = startTime
|
||||
# If no duration given use sound's duration as interval's duration
|
||||
if duration == 0.0 and self.sound != None:
|
||||
duration = self.sound.length() - self.startTime
|
||||
duration = max(self.sound.length() - self.startTime, 0)
|
||||
if (duration == 0):
|
||||
self.notify.warning('zero length duration!')
|
||||
# MPG - hack for Miles bug
|
||||
|
Loading…
x
Reference in New Issue
Block a user