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:
parent
a498a1cdc9
commit
58bbd2d076
@ -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…
x
Reference in New Issue
Block a user