OSDN Git Service

Fixing a bug that occured when the model was invalid and had no faces (only a line...
authorKaelthas_Spellsinger@o2.pl <Kaelthas_Spellsinger@o2.pl@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Thu, 20 Oct 2011 18:06:18 +0000 (18:06 +0000)
committerKaelthas_Spellsinger@o2.pl <Kaelthas_Spellsinger@o2.pl@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Thu, 20 Oct 2011 18:06:18 +0000 (18:06 +0000)
Such model will not be visible.

git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@8468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java

index c484b4b..6584fa6 100644 (file)
@@ -128,6 +128,8 @@ public class MeshHelper extends AbstractBlenderHelper {
             if (mFaces == null || mFaces.size() == 0) {\r
                 return new ArrayList<Geometry>(0);\r
             }\r
+        } else{\r
+               mFaces = new ArrayList<Structure>(0);\r
         }\r
 \r
         Pointer pMTFace = (Pointer) structure.getFieldValue("mtface");\r