mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Updates to fix mopath recorder
This commit is contained in:
parent
d3b9f82604
commit
3546fff47e
@ -1116,10 +1116,11 @@ class MopathRecorder(AppShell, PandaObject):
|
|||||||
return
|
return
|
||||||
self.fAdjustingValues = 1
|
self.fAdjustingValues = 1
|
||||||
# Widgets depending on max T
|
# Widgets depending on max T
|
||||||
maxT = '%.2f' % self.curveCollection.getMaxT()
|
maxT = self.curveCollection.getMaxT()
|
||||||
|
maxT_text = '%0.2f' % maxT
|
||||||
# Playback controls
|
# Playback controls
|
||||||
self.getWidget('Playback', 'Time').configure(max = maxT)
|
self.getWidget('Playback', 'Time').configure(max = maxT_text)
|
||||||
self.getVariable('Resample', 'Path Duration').set(maxT)
|
self.getVariable('Resample', 'Path Duration').set(maxT_text)
|
||||||
# Refine widgets
|
# Refine widgets
|
||||||
widget = self.getWidget('Refine Page', 'Refine From')
|
widget = self.getWidget('Refine Page', 'Refine From')
|
||||||
widget.configure(max = maxT)
|
widget.configure(max = maxT)
|
||||||
@ -1247,6 +1248,7 @@ class MopathRecorder(AppShell, PandaObject):
|
|||||||
def playbackGoTo(self, time):
|
def playbackGoTo(self, time):
|
||||||
if self.curveCollection == None:
|
if self.curveCollection == None:
|
||||||
return
|
return
|
||||||
|
print time
|
||||||
self.playbackTime = CLAMP(time, 0.0, self.maxT)
|
self.playbackTime = CLAMP(time, 0.0, self.maxT)
|
||||||
if self.curveCollection != None:
|
if self.curveCollection != None:
|
||||||
pos = Point3(0)
|
pos = Point3(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user