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; useTangents = true;
} }
} else { } else {
for (int vert = 0; vert < geomVertCount; vert++) { inBuf.copyElements(0, outBuf, globalVertIndex, geomVertCount);
int curGlobalVertIndex = globalVertIndex + vert; // for (int vert = 0; vert < geomVertCount; vert++) {
inBuf.copyElement(vert, outBuf, curGlobalVertIndex); // int curGlobalVertIndex = globalVertIndex + vert;
} // inBuf.copyElement(vert, outBuf, curGlobalVertIndex);
// }
} }
} }