mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Fix LerpBlendHelpers import
This commit is contained in:
parent
bba6537f97
commit
712ecb8d3b
@ -311,7 +311,7 @@
|
|||||||
# functor creation is defered so initial state (sampled in functorFunc)
|
# functor creation is defered so initial state (sampled in functorFunc)
|
||||||
# will be appropriate for the time the lerp is spawned
|
# will be appropriate for the time the lerp is spawned
|
||||||
from direct.task import Task
|
from direct.task import Task
|
||||||
from direct.showbase import LerpBlendHelpers
|
from direct.interval import LerpBlendHelpers
|
||||||
from direct.task.TaskManagerGlobal import taskMgr
|
from direct.task.TaskManagerGlobal import taskMgr
|
||||||
|
|
||||||
# upon death remove the functorFunc
|
# upon death remove the functorFunc
|
||||||
@ -367,7 +367,7 @@
|
|||||||
This lerp uses C++ to handle the stepping. Bonus is
|
This lerp uses C++ to handle the stepping. Bonus is
|
||||||
its more efficient, trade-off is there is less control"""
|
its more efficient, trade-off is there is less control"""
|
||||||
from pandac import AutonomousLerp
|
from pandac import AutonomousLerp
|
||||||
from direct.showbase import LerpBlendHelpers
|
from direct.interval import LerpBlendHelpers
|
||||||
# make a lerp that lives in C++ land
|
# make a lerp that lives in C++ land
|
||||||
functor = functorFunc()
|
functor = functorFunc()
|
||||||
lerp = AutonomousLerp.AutonomousLerp(functor, time,
|
lerp = AutonomousLerp.AutonomousLerp(functor, time,
|
||||||
|
@ -405,7 +405,7 @@ def __lerp(self, functorFunc, duration, blendType, taskName=None):
|
|||||||
# functor creation is defered so initial state (sampled in functorFunc)
|
# functor creation is defered so initial state (sampled in functorFunc)
|
||||||
# will be appropriate for the time the lerp is spawned
|
# will be appropriate for the time the lerp is spawned
|
||||||
from direct.task import Task
|
from direct.task import Task
|
||||||
from direct.showbase import LerpBlendHelpers
|
from direct.interval import LerpBlendHelpers
|
||||||
from direct.task.TaskManagerGlobal import taskMgr
|
from direct.task.TaskManagerGlobal import taskMgr
|
||||||
|
|
||||||
# make the task function
|
# 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
|
This lerp uses C++ to handle the stepping. Bonus is
|
||||||
its more efficient, trade-off is there is less control"""
|
its more efficient, trade-off is there is less control"""
|
||||||
from pandac.PandaModules import AutonomousLerp
|
from pandac.PandaModules import AutonomousLerp
|
||||||
from direct.showbase import LerpBlendHelpers
|
from direct.interval import LerpBlendHelpers
|
||||||
# make a lerp that lives in C++ land
|
# make a lerp that lives in C++ land
|
||||||
functor = functorFunc()
|
functor = functorFunc()
|
||||||
lerp = AutonomousLerp(functor, time,
|
lerp = AutonomousLerp(functor, time,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user