mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
subtle ordering problem
This commit is contained in:
parent
a4f7ec2980
commit
b8ac8d8e21
@ -48,16 +48,20 @@ class IntervalManager(CIntervalManager):
|
||||
# Call C++ step, then do all the required Python post-processing.
|
||||
CIntervalManager.step(self)
|
||||
|
||||
# It is important to call all of the python callbacks on the
|
||||
# just-removed intervals before we call any of the callbacks
|
||||
# on the still-running intervals.
|
||||
index = self.getNextRemoval()
|
||||
while index >= 0:
|
||||
self.ivals[index].privPostEvent()
|
||||
self.ivals[index] = None
|
||||
index = self.getNextRemoval()
|
||||
|
||||
index = self.getNextEvent()
|
||||
while index >= 0:
|
||||
self.ivals[index].privPostEvent()
|
||||
index = self.getNextEvent()
|
||||
|
||||
index = self.getNextRemoval()
|
||||
while index >= 0:
|
||||
self.ivals[index] = None
|
||||
index = self.getNextRemoval()
|
||||
|
||||
def __storeInterval(self, interval, index):
|
||||
while index >= len(self.ivals):
|
||||
self.ivals.append(None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user