From b7a3818b60e5c3127784ed5e099ac45d7238a5c1 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Thu, 20 Oct 2011 18:06:18 +0000 Subject: [PATCH] Fixing a bug that occured when the model was invalid and had no faces (only a line for example). Such model will not be visible. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8468 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/scene/plugins/blender/meshes/MeshHelper.java | 2 ++ 1 file changed, 2 insertions(+) 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 c484b4b4a..6584fa6f8 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 @@ -128,6 +128,8 @@ public class MeshHelper extends AbstractBlenderHelper { if (mFaces == null || mFaces.size() == 0) { return new ArrayList(0); } + } else{ + mFaces = new ArrayList(0); } Pointer pMTFace = (Pointer) structure.getFieldValue("mtface");