- make jbullet mesh generation synchronized

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10393 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 305e3f25e0
commit 0ec18dca80
  1. 2
      engine/src/jbullet/com/jme3/bullet/util/Converter.java

@ -223,7 +223,7 @@ public class Converter {
return out;
}
public static IndexedMesh convert(Mesh mesh) {
public static synchronized IndexedMesh convert(Mesh mesh) {
IndexedMesh jBulletIndexedMesh = new IndexedMesh();
jBulletIndexedMesh.triangleIndexBase = ByteBuffer.allocate(mesh.getTriangleCount() * 3 * 4);
jBulletIndexedMesh.vertexBase = ByteBuffer.allocate(mesh.getVertexCount() * 3 * 4);

Loading…
Cancel
Save