(0013986)
|
Zhanping Liu
|
2008-10-30 08:56
|
|
Bug 0007831 was fixed. The problem was due to vtkSequenceAnimationPlayer::StartLoop(). The old version has only two arguments, without considering the 'current' time at which an animation might be paused / stopped and from which it might be intended to be resumed subsequently. 'FrameNo' not only indicates the frame index, but also, in some cases, determines the time from which to resume an animation. In the old version, it is always set to 0 --- to start an animation from the very beginning.
In the new version, the 'current' time --- 'currenttime' (obtained from the 'scene' time) --- is used to determine the 'previous' frame index, next to which an animation is to be resumed. See line 34 to line 56 for the update.
To make this fix, some files were updated so as to be consistent with one another in terms of the signature of StartLoop().
( 1) vtkAnimationPlayer.h --- StartLoop()'s signature updated.
( 2) vtkAnimationPlayer.cxx --- Call to StartLoop() updated.
( 3) vtkSequenceAnimationPlayer.h ---StartLoop()'s signature updated.
( 4) vtkSequenceAnimationPlayer.cxx --- StartLoop() updated.
( 5) vtkRealTimeAnimationPlayer.h --- StartLoop()'s signature updated.
( 6) vtkRealTimeAnimationPlayer.cxx --- StartLoop()'s signature updated.
( 7) vtkTimeStepAnimationPlayer.h ---StartLoop()'s signature updated.
( 8) vtkTimeStepAnimationPlayer.cxx --- StartLoop()'s signature updated.
( 9) vtkCompositeAnimationPlayer.h --- StartLoop()'s signature updated.
(10) vtkCompositeAnimationPlayer.cxx --- The signature of and call to StartLoop() updated.
Thanks for reporting this bug. |
|