mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 20:53:50 -04:00
Update interval controls jump to start/end
This commit is contained in:
parent
9dc875c80d
commit
bb63ebad79
@ -397,12 +397,12 @@ class Interval(DirectObject):
|
|||||||
bf = Frame(outerFrame)
|
bf = Frame(outerFrame)
|
||||||
# Jump to start and end
|
# Jump to start and end
|
||||||
def toStart(s=self, es=es):
|
def toStart(s=self, es=es):
|
||||||
s.pause()
|
s.clearToInitial()
|
||||||
s.setT(0.0)
|
es.set(0, fCommand = 0)
|
||||||
s.pause()
|
|
||||||
def toEnd(s=self):
|
def toEnd(s=self):
|
||||||
s.pause()
|
s.pause()
|
||||||
s.setT(s.getDuration())
|
s.setT(s.getDuration())
|
||||||
|
es.set(s.getDuration(), fCommand = 0)
|
||||||
s.pause()
|
s.pause()
|
||||||
jumpToStart = Button(bf, text = '<<', command = toStart)
|
jumpToStart = Button(bf, text = '<<', command = toStart)
|
||||||
# Stop/play buttons
|
# Stop/play buttons
|
||||||
|
Loading…
x
Reference in New Issue
Block a user