we don't need to clean lerps up so aggressively--this code has never worked anyway

This commit is contained in:
David Rose 2008-11-12 23:28:01 +00:00
parent 2e01bf163f
commit d07c5e15ed
1 changed files with 0 additions and 13 deletions

View File

@ -407,18 +407,6 @@ def __lerp(self, functorFunc, duration, blendType, taskName=None):
from direct.showbase import LerpBlendHelpers
from direct.task.TaskManagerGlobal import taskMgr
# upon death remove the functorFunc
def lerpUponDeath(task):
# Try to break circular references
try:
del task.functorFunc
except:
pass
try:
del task.lerp
except:
pass
# make the task function
def lerpTaskFunc(task):
from pandac.PandaModules import Lerp
@ -445,7 +433,6 @@ def __lerp(self, functorFunc, duration, blendType, taskName=None):
lerpTask.functorFunc = functorFunc
lerpTask.duration = duration
lerpTask.blendType = LerpBlendHelpers.getBlend(blendType)
lerpTask.setUponDeath(lerpUponDeath)
if (taskName == None):
# don't spawn a task, return one instead