提交 bdbea51b 编写于 作者: T Tristan VALCKE

BufferGeometryUtil: Replace for-of loop by a for loop

上级 20bd2b63
......@@ -498,7 +498,9 @@ THREE.BufferGeometryUtils = {
var getters = [ 'getX', 'getY', 'getZ', 'getW' ];
// initialize the arrays
for ( var name of attributeNames ) {
var name = undefined;
for ( var attributeNameIndex = 0, numberOfAttributeNames = attributeNames.length ; attributeNameIndex < numberOfAttributeNames ; attributeNameIndex++ ) {
name = attributeNames[ attributeNameIndex ];
attrArrays[ name ] = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册