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
@ -86,7 +86,7 @@ public class Line extends Mesh {
|
|||||||
VertexBuffer posBuf = getBuffer(Type.Position);
|
VertexBuffer posBuf = getBuffer(Type.Position);
|
||||||
|
|
||||||
FloatBuffer fb = (FloatBuffer) posBuf.getData();
|
FloatBuffer fb = (FloatBuffer) posBuf.getData();
|
||||||
|
fb.rewind();
|
||||||
fb.put(start.x).put(start.y).put(start.z);
|
fb.put(start.x).put(start.y).put(start.z);
|
||||||
fb.put(end.x).put(end.y).put(end.z);
|
fb.put(end.x).put(end.y).put(end.z);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user