mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
subtle ordering problem
This commit is contained in:
parent
a4f7ec2980
commit
b8ac8d8e21
@ -48,15 +48,19 @@ class IntervalManager(CIntervalManager):
|
|||||||
# Call C++ step, then do all the required Python post-processing.
|
# Call C++ step, then do all the required Python post-processing.
|
||||||
CIntervalManager.step(self)
|
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()
|
index = self.getNextEvent()
|
||||||
while index >= 0:
|
while index >= 0:
|
||||||
self.ivals[index].privPostEvent()
|
self.ivals[index].privPostEvent()
|
||||||
index = self.getNextEvent()
|
index = self.getNextEvent()
|
||||||
|
|
||||||
index = self.getNextRemoval()
|
|
||||||
while index >= 0:
|
|
||||||
self.ivals[index] = None
|
|
||||||
index = self.getNextRemoval()
|
|
||||||
|
|
||||||
def __storeInterval(self, interval, index):
|
def __storeInterval(self, interval, index):
|
||||||
while index >= len(self.ivals):
|
while index >= len(self.ivals):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user