- Fixed crash in Curve class when building indexbuffer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
bef4a77169
commit
7938b776de
@ -122,7 +122,7 @@ public class Curve extends Mesh {
|
|||||||
|
|
||||||
this.setMode(Mesh.Mode.Lines);
|
this.setMode(Mesh.Mode.Lines);
|
||||||
this.setBuffer(VertexBuffer.Type.Position, 3, array);
|
this.setBuffer(VertexBuffer.Type.Position, 3, array);
|
||||||
this.setBuffer(VertexBuffer.Type.Index, (spline.getControlPoints().size() - 1) * nbSubSegments * 2, indices);
|
this.setBuffer(VertexBuffer.Type.Index, 3, indices);//(spline.getControlPoints().size() - 1) * nbSubSegments * 2
|
||||||
this.updateBound();
|
this.updateBound();
|
||||||
this.updateCounts();
|
this.updateCounts();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user