Error when playing animations.

Software: Away3D 4.x

Alex Bogartz, Sr. Member
Posted: 10 October 2011 06:19 PM   Total Posts: 216

When I load an md5 file, with 3 animations, I get this error intermittently.

[Fault] exception, information=RangeError: Error #1125: The index 40 is out of range 40.

It does not happen every time, and restarting the application make the issue go away.

The error is here:

override public function updatePose(skeleton Skeleton) : void
  {
   
if (_clip.duration == 0) return;
   if (
_framesInvalidupdateFrames(_time-_startTime);

   var 
poses1 Vector.<JointPose> = clip._frames[_frame1].jointPoses;
   var 
poses2 Vector.<JointPose> = clip._frames[_frame2].jointPoses

clip._frames has 39 elements, but _frame2 is looking for 40.

Seems like a bug.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X