From 58bbd2d07617c364598aa4686883f78602090e89 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Thu, 13 Sep 2012 15:12:59 +0000 Subject: [PATCH] Fix for method that checks if the mesh is a B-Mesh or not. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9719 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/scene/plugins/blender/meshes/MeshHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java index 736c1c29c..bc7ff20f9 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java @@ -253,7 +253,7 @@ public class MeshHelper extends AbstractBlenderHelper { private boolean isBMeshCompatible(Structure meshStructure) { Pointer pMLoop = (Pointer) meshStructure.getFieldValue("mloop"); Pointer pMPoly = (Pointer) meshStructure.getFieldValue("mpoly"); - return pMLoop != null && pMPoly != null; + return pMLoop != null && pMPoly != null && pMLoop.isNotNull() && pMPoly.isNotNull(); } /**