|
@@ -3,7 +3,12 @@
|
|
|
from PandaModules import *
|
|
from PandaModules import *
|
|
|
from Interval import *
|
|
from Interval import *
|
|
|
|
|
|
|
|
|
|
+import DirectNotifyGlobal
|
|
|
|
|
+
|
|
|
class ActorInterval(Interval):
|
|
class ActorInterval(Interval):
|
|
|
|
|
+
|
|
|
|
|
+ notify = DirectNotifyGlobal.directNotify.newCategory('ActorInterval')
|
|
|
|
|
+
|
|
|
# Name counter
|
|
# Name counter
|
|
|
animNum = 1
|
|
animNum = 1
|
|
|
# Class methods
|
|
# Class methods
|
|
@@ -59,6 +64,8 @@ class ActorInterval(Interval):
|
|
|
(self.startTime + self.getDuration()))
|
|
(self.startTime + self.getDuration()))
|
|
|
frame = int(round(currT)) % self.numFrames
|
|
frame = int(round(currT)) % self.numFrames
|
|
|
# Pose anim
|
|
# Pose anim
|
|
|
|
|
+ self.notify.debug('updateFunc() - stopping at frame: %d of %d' \
|
|
|
|
|
+ % (frame, self.numFrames))
|
|
|
self.actor.pose(self.animName, frame)
|
|
self.actor.pose(self.animName, frame)
|
|
|
if self.loop:
|
|
if self.loop:
|
|
|
self.ignore(self.stopEvent)
|
|
self.ignore(self.stopEvent)
|