Called to update the data in the buffer with new data. Can only be called after {@link VertexBuffer#setupData(com.jme3.scene.VertexBuffer.Usage,int,com.jme3.scene.VertexBuffer.Format,java.nio.Buffer) }has been called. Note that it is fine to call this method on the data already set, e.g. vb.updateData(vb.getData()), this will just set the proper update flag indicating the data should be sent to the GPU again.
It is allowed to specify a buffer with different capacity than the originally set buffer, HOWEVER, if you do so, you must call Mesh.updateCounts() otherwise bizarre errors can occur.
@param data The data buffer to set