|
|
@@ -405,7 +405,7 @@ def __lerp(self, functorFunc, duration, blendType, taskName=None):
|
|
|
# functor creation is defered so initial state (sampled in functorFunc)
|
|
|
# will be appropriate for the time the lerp is spawned
|
|
|
from direct.task import Task
|
|
|
- from direct.showbase import LerpBlendHelpers
|
|
|
+ from direct.interval import LerpBlendHelpers
|
|
|
from direct.task.TaskManagerGlobal import taskMgr
|
|
|
|
|
|
# make the task function
|
|
|
@@ -451,7 +451,7 @@ def __autoLerp(self, functorFunc, time, blendType, taskName):
|
|
|
This lerp uses C++ to handle the stepping. Bonus is
|
|
|
its more efficient, trade-off is there is less control"""
|
|
|
from pandac.PandaModules import AutonomousLerp
|
|
|
- from direct.showbase import LerpBlendHelpers
|
|
|
+ from direct.interval import LerpBlendHelpers
|
|
|
# make a lerp that lives in C++ land
|
|
|
functor = functorFunc()
|
|
|
lerp = AutonomousLerp(functor, time,
|