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

Merge pull request #7228 from tamarintech/fix/r73dev_warnings_buffergeometry

Updated addAttribute('index'... to setIndex(... per a warning in r73dev
......@@ -106,8 +106,8 @@ THREE.AMFLoader.prototype = {
var material = objdefaultmaterial;
newgeometry.addAttribute('position', vertices.clone());
newgeometry.addAttribute('index', new THREE.BufferAttribute(indexes, 1));
newgeometry.addAttribute('position', vertices.clone() );
newgeometry.setIndex( new THREE.BufferAttribute(indexes, 1) );
if(amfMaterials[currvolume.materialid] !== undefined) {
material = amfMaterials[currvolume.materialid];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册