From 0ec18dca80316625ff5240155e8b6a8af26aac92 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Tue, 12 Feb 2013 21:45:11 +0000 Subject: [PATCH] - make jbullet mesh generation synchronized git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10393 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/jbullet/com/jme3/bullet/util/Converter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/jbullet/com/jme3/bullet/util/Converter.java b/engine/src/jbullet/com/jme3/bullet/util/Converter.java index ac397d59a..f9956d080 100644 --- a/engine/src/jbullet/com/jme3/bullet/util/Converter.java +++ b/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);