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
This commit is contained in:
parent
0e733ff100
commit
211b63be84
@ -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…
x
Reference in New Issue
Block a user