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