提交 c1dd693c 编写于 作者: E Elijah Snyder

Updated addAttribute('index'... to setIndex(... per a warning in r73dev

上级 675c971f
......@@ -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.
先完成此消息的编辑!
想要评论请 注册