sreejith-mohanan / android-gl

Automatically exported from code.google.com/p/android-gl
0 stars 0 forks source link

VBORenderer problem #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Problem occurs at next lines of code:

this.frameCount = model.getAnimation(0).getEndFrame();
this.frameCount = 16;
this.vertices = new float[frameCount][];
this.normals = new float[frameCount][];
for (int i = 0; i < frameCount; ++i) {
     loadMesh(model.getFrame(i).getMesh(), i);
}

So my model doesn't have animation frames but look at here:
this.frameCount = model.getAnimation(0).getEndFrame(); //returns 1
this.frameCount = 16;
and app will crash at line:
     loadMesh(model.getFrame(i).getMesh(), i);
with index out of boudns

Please manage this.

Original issue reported on code.google.com by cih.exe...@gmail.com on 5 Feb 2010 at 9:34