Line shape now rewinds the buffer before data is set in updatePoints()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9778 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
bre..om 12 years ago
parent 0e733ff100
commit 211b63be84
  1. 4
      engine/src/core/com/jme3/scene/shape/Line.java

@ -84,9 +84,9 @@ public class Line extends Mesh {
*/
public void updatePoints(Vector3f start, Vector3f end) {
VertexBuffer posBuf = getBuffer(Type.Position);
FloatBuffer fb = (FloatBuffer) posBuf.getData();
fb.rewind();
fb.put(start.x).put(start.y).put(start.z);
fb.put(end.x).put(end.y).put(end.z);

Loading…
Cancel
Save