we don't need to clean lerps up so aggressively--this code has never worked anyway
This commit is contained in:
parent
2e01bf163f
commit
d07c5e15ed
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue