- make jbullet mesh generation synchronized
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10393 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
305e3f25e0
commit
0ec18dca80
@ -223,7 +223,7 @@ public class Converter {
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IndexedMesh convert(Mesh mesh) {
|
public static synchronized IndexedMesh convert(Mesh mesh) {
|
||||||
IndexedMesh jBulletIndexedMesh = new IndexedMesh();
|
IndexedMesh jBulletIndexedMesh = new IndexedMesh();
|
||||||
jBulletIndexedMesh.triangleIndexBase = ByteBuffer.allocate(mesh.getTriangleCount() * 3 * 4);
|
jBulletIndexedMesh.triangleIndexBase = ByteBuffer.allocate(mesh.getTriangleCount() * 3 * 4);
|
||||||
jBulletIndexedMesh.vertexBase = ByteBuffer.allocate(mesh.getVertexCount() * 3 * 4);
|
jBulletIndexedMesh.vertexBase = ByteBuffer.allocate(mesh.getVertexCount() * 3 * 4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user