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

BufferGeometry: Fixed addAttribute backwards compatibility.

上级 5fa3f190
......@@ -33,7 +33,7 @@ THREE.BufferGeometry.prototype = {
console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' );
this.attributes[ name ] = { array: arguments[ 1 ], itemSize: arguments[ 2 ] };
this.addAttribute( name, new THREE.BufferAttribute( arguments[ 1 ], arguments[ 2 ] ) );
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册