Bugfix: issue #631 (MeshCollisionShape constructor requires a TriMesh) in gradle-restructure branch
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@11094 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
5134c6052c
commit
d7dc3a1600
@ -210,7 +210,7 @@ public class CollisionShapeFactory {
|
||||
private static MeshCollisionShape createSingleMeshShape(Geometry geom, Spatial parent) {
|
||||
Mesh mesh = geom.getMesh();
|
||||
Transform trans = getTransform(geom, parent);
|
||||
if (mesh != null) {
|
||||
if (mesh != null && mesh.getMode() == Mesh.Mode.Triangles) {
|
||||
MeshCollisionShape mColl = new MeshCollisionShape(mesh);
|
||||
mColl.setScale(trans.getScale());
|
||||
return mColl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user