- improve failsafeness of GeometryBatchFactory

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8984 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 47f6470a27
commit fbf42ffbca
  1. 4
      engine/src/tools/jme3tools/optimize/GeometryBatchFactory.java

@ -158,10 +158,10 @@ public class GeometryBatchFactory {
VertexBuffer inBuf = inMesh.getBuffer(Type.values()[bufType]); VertexBuffer inBuf = inMesh.getBuffer(Type.values()[bufType]);
VertexBuffer outBuf = outMesh.getBuffer(Type.values()[bufType]); VertexBuffer outBuf = outMesh.getBuffer(Type.values()[bufType]);
if (outBuf == null) { if (inBuf == null || outBuf == null) {
continue; continue;
} }
if (Type.Index.ordinal() == bufType) { if (Type.Index.ordinal() == bufType) {
int components = compsForBuf[bufType]; int components = compsForBuf[bufType];

Loading…
Cancel
Save