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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user