From fbf42ffbcaa71631ee76f82391e00e00704371cc Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Fri, 6 Jan 2012 17:00:34 +0000 Subject: [PATCH] - improve failsafeness of GeometryBatchFactory git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8984 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java b/engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java index 6051b4b54..abb89a5f0 100644 --- a/engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java +++ b/engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java @@ -158,10 +158,10 @@ public class GeometryBatchFactory { VertexBuffer inBuf = inMesh.getBuffer(Type.values()[bufType]); VertexBuffer outBuf = outMesh.getBuffer(Type.values()[bufType]); - if (outBuf == null) { + if (inBuf == null || outBuf == null) { continue; } - + if (Type.Index.ordinal() == bufType) { int components = compsForBuf[bufType];