mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
crash fix
This commit is contained in:
parent
5000348067
commit
522fa09f1a
@ -116,10 +116,12 @@ class GarbageReport(TaskThreaded):
|
|||||||
self.finished()
|
self.finished()
|
||||||
def run(self):
|
def run(self):
|
||||||
for i in xrange(self.index, self.parent.numGarbage):
|
for i in xrange(self.index, self.parent.numGarbage):
|
||||||
self.parent.cycles.extend(self.parent._getCycles(i, self.parent.cycleSets))
|
newCycles = self.parent._getCycles(i, self.parent.cycleSets)
|
||||||
|
self.parent.cycles.extend(newCycles)
|
||||||
# if we're not doing a full report, add this cycle's IDs to the master set
|
# if we're not doing a full report, add this cycle's IDs to the master set
|
||||||
if not self.parent._args.fullReport:
|
if not self.parent._args.fullReport:
|
||||||
self.parent.cycleIds.update(set(self.parent.cycles[-1]))
|
for cycle in newCycles:
|
||||||
|
self.parent.cycleIds.update(set(cycle))
|
||||||
if (not (i & 0x0F)) and (not self.timeLeft()):
|
if (not (i & 0x0F)) and (not self.timeLeft()):
|
||||||
# we've run out of time, save the index
|
# we've run out of time, save the index
|
||||||
self.index = i+1
|
self.index = i+1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user