- improve failsafeness of GeometryBatchFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8984 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
@@ -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];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user