From 7938b776deecb2af0027ff177f2d159c0395463c Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sat, 7 May 2011 07:49:11 +0000 Subject: [PATCH] - Fixed crash in Curve class when building indexbuffer git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/scene/shape/Curve.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/scene/shape/Curve.java b/engine/src/core/com/jme3/scene/shape/Curve.java index 8b7ccab05..3b4387f28 100644 --- a/engine/src/core/com/jme3/scene/shape/Curve.java +++ b/engine/src/core/com/jme3/scene/shape/Curve.java @@ -122,7 +122,7 @@ public class Curve extends Mesh { this.setMode(Mesh.Mode.Lines); 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.updateCounts(); }