From 3546fff47e8ae575ca5c25474c26977b31b0ea7b Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Fri, 5 Apr 2002 22:30:01 +0000 Subject: [PATCH] Updates to fix mopath recorder --- direct/src/tkpanels/MopathRecorder.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/direct/src/tkpanels/MopathRecorder.py b/direct/src/tkpanels/MopathRecorder.py index b3af9b9fc8..1228d04633 100644 --- a/direct/src/tkpanels/MopathRecorder.py +++ b/direct/src/tkpanels/MopathRecorder.py @@ -1116,10 +1116,11 @@ class MopathRecorder(AppShell, PandaObject): return self.fAdjustingValues = 1 # Widgets depending on max T - maxT = '%.2f' % self.curveCollection.getMaxT() + maxT = self.curveCollection.getMaxT() + maxT_text = '%0.2f' % maxT # Playback controls - self.getWidget('Playback', 'Time').configure(max = maxT) - self.getVariable('Resample', 'Path Duration').set(maxT) + self.getWidget('Playback', 'Time').configure(max = maxT_text) + self.getVariable('Resample', 'Path Duration').set(maxT_text) # Refine widgets widget = self.getWidget('Refine Page', 'Refine From') widget.configure(max = maxT) @@ -1247,6 +1248,7 @@ class MopathRecorder(AppShell, PandaObject): def playbackGoTo(self, time): if self.curveCollection == None: return + print time self.playbackTime = CLAMP(time, 0.0, self.maxT) if self.curveCollection != None: pos = Point3(0)