提交 f649588c 编写于 作者: W webglzhang

fix duplicate array creation

上级 1be0fbc0
......@@ -53,7 +53,7 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
_instanceWorldMatrix.multiplyMatrices( matrixWorld, _instanceLocalMatrix );
//The agent mesh represents this single instance
//The mesh represents this single instance
_mesh.matrixWorld = _instanceWorldMatrix;
......@@ -69,7 +69,7 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
intersects.push( _instanceIntersects[ 0 ] );
_instanceIntersects = [];
_instanceIntersects.length = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册