mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 13:15:00 -04:00
*** empty log message ***
This commit is contained in:
parent
399a36f1f0
commit
04013ae5ac
BIN
direct/src/doc/pandaUserGuide.doc
Normal file
BIN
direct/src/doc/pandaUserGuide.doc
Normal file
Binary file not shown.
@ -33,7 +33,7 @@ class ActorInterval(Interval):
|
|||||||
# Record class specific variables
|
# Record class specific variables
|
||||||
self.actor = actor
|
self.actor = actor
|
||||||
self.animName = animName
|
self.animName = animName
|
||||||
self.loop = loop
|
self.loopAnim = loop
|
||||||
self.frameRate = self.actor.getFrameRate(self.animName)
|
self.frameRate = self.actor.getFrameRate(self.animName)
|
||||||
self.numFrames = self.actor.getNumFrames(self.animName)
|
self.numFrames = self.actor.getNumFrames(self.animName)
|
||||||
# Compute start time
|
# Compute start time
|
||||||
@ -62,7 +62,7 @@ class ActorInterval(Interval):
|
|||||||
Interval.__init__(self, name, duration, reverse=reverse)
|
Interval.__init__(self, name, duration, reverse=reverse)
|
||||||
# Update stopEvent
|
# Update stopEvent
|
||||||
self.stopEvent = id + '_stopEvent'
|
self.stopEvent = id + '_stopEvent'
|
||||||
if self.loop:
|
if self.loopAnim:
|
||||||
self.stopEventList = [self.stopEvent]
|
self.stopEventList = [self.stopEvent]
|
||||||
|
|
||||||
def calcFrame(self, t):
|
def calcFrame(self, t):
|
||||||
@ -104,13 +104,13 @@ class ActorInterval(Interval):
|
|||||||
if (t >= self.getDuration()):
|
if (t >= self.getDuration()):
|
||||||
self.actor.stop()
|
self.actor.stop()
|
||||||
frame = self.goToT(self.getDuration())
|
frame = self.goToT(self.getDuration())
|
||||||
if self.loop:
|
if self.loopAnim:
|
||||||
self.ignore(self.stopEvent)
|
self.ignore(self.stopEvent)
|
||||||
# Print debug information
|
# Print debug information
|
||||||
self.notify.debug(
|
self.notify.debug(
|
||||||
'updateFunc() - %s stoping at frame: ' % self.name +
|
'updateFunc() - %s stoping at frame: ' % self.name +
|
||||||
'%d Num frames: %d' % (frame, self.numFrames))
|
'%d Num frames: %d' % (frame, self.numFrames))
|
||||||
elif self.loop == 1:
|
elif self.loopAnim == 1:
|
||||||
if event == IVAL_INIT:
|
if event == IVAL_INIT:
|
||||||
# Pose anim
|
# Pose anim
|
||||||
self.goToT(t)
|
self.goToT(t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user