BatchNode now use bulk copy for untransformed buffers like GeometryBatchFactory

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9103 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
rem..om 2012-01-19 20:02:00 +00:00
parent 4c7e271606
commit 33b6bcb20c

View File

@ -475,10 +475,11 @@ public class BatchNode extends Node implements Savable {
useTangents = true;
}
} else {
for (int vert = 0; vert < geomVertCount; vert++) {
int curGlobalVertIndex = globalVertIndex + vert;
inBuf.copyElement(vert, outBuf, curGlobalVertIndex);
}
inBuf.copyElements(0, outBuf, globalVertIndex, geomVertCount);
// for (int vert = 0; vert < geomVertCount; vert++) {
// int curGlobalVertIndex = globalVertIndex + vert;
// inBuf.copyElement(vert, outBuf, curGlobalVertIndex);
// }
}
}