mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
3103d5d4e7
commit
c853e160e6
@ -213,15 +213,17 @@ class Track(Interval):
|
||||
currentInterval = ival
|
||||
elif (t > tEnd):
|
||||
# Crossing over interval end
|
||||
if ((((event == IVAL_NONE) or (event == IVAL_DONE)) and
|
||||
(self.prev_t < tEnd))
|
||||
or
|
||||
((event == IVAL_INIT) and ival.getfOpenEnded())):
|
||||
# If we've just crossed the end of this interval
|
||||
if (((event == IVAL_NONE) or (event == IVAL_DONE)) and
|
||||
(self.prev_t < tEnd)):
|
||||
# We've just crossed the end of this interval,
|
||||
# execute the interval at its end time
|
||||
# and flag event as IVAL_DONE
|
||||
ival.setT(ival.getDuration(), IVAL_DONE)
|
||||
elif ((event == IVAL_INIT) and ival.getfOpenEnded()):
|
||||
# or its an INIT event after the interval's end
|
||||
# and the interval is openended,
|
||||
# then execute the interval at its end time
|
||||
ival.setT(ival.getDuration(), event)
|
||||
ival.setT(ival.getDuration(), IVAL_INIT)
|
||||
# May not be the last, keep checking other intervals
|
||||
# Record current interval (may be None)
|
||||
self.currentInterval = currentInterval
|
||||
|
Loading…
x
Reference in New Issue
Block a user