提交 77b6890c 编写于 作者: M Mr.doob

BufferGeometry: Returning attribute object in addAttribute() as suggested in #4459.

上级 d5eb03dd
......@@ -32,11 +32,13 @@ THREE.BufferGeometry.prototype = {
this.attributes[ name ] = {
itemSize: itemSize,
array: new type( numItems * itemSize )
array: new type( numItems * itemSize ),
itemSize: itemSize
};
return this.attributes[ name ];
},
applyMatrix: function ( matrix ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册