فهرست منبع

Fix LerpBlendHelpers import

rdb 12 سال پیش
والد
کامیت
712ecb8d3b
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      direct/src/extensions/NodePath-extensions.py
  2. 2 2
      direct/src/extensions_native/NodePath_extensions.py

+ 2 - 2
direct/src/extensions/NodePath-extensions.py

@@ -311,7 +311,7 @@
         # 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
 
         # upon death remove the functorFunc
@@ -367,7 +367,7 @@
         This lerp uses C++ to handle the stepping. Bonus is
         its more efficient, trade-off is there is less control"""
         from pandac import AutonomousLerp
-        from direct.showbase import LerpBlendHelpers
+        from direct.interval import LerpBlendHelpers
         # make a lerp that lives in C++ land
         functor = functorFunc()
         lerp = AutonomousLerp.AutonomousLerp(functor, time,

+ 2 - 2
direct/src/extensions_native/NodePath_extensions.py

@@ -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,