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
3.0
Kae..pl 13 years ago
parent a498a1cdc9
commit 58bbd2d076
  1. 2
      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) { private boolean isBMeshCompatible(Structure meshStructure) {
Pointer pMLoop = (Pointer) meshStructure.getFieldValue("mloop"); Pointer pMLoop = (Pointer) meshStructure.getFieldValue("mloop");
Pointer pMPoly = (Pointer) meshStructure.getFieldValue("mpoly"); Pointer pMPoly = (Pointer) meshStructure.getFieldValue("mpoly");
return pMLoop != null && pMPoly != null; return pMLoop != null && pMPoly != null && pMLoop.isNotNull() && pMPoly.isNotNull();
} }
/** /**

Loading…
Cancel
Save