提交 ff3269a3 编写于 作者: H haeric

Fix array overflow in Raycaster.intersectObject for indexless buffergeometry

Also removes unused offsets var.
上级 902d8bb3
......@@ -328,10 +328,9 @@
} else {
var offsets = geometry.offsets;
var positions = attributes.position.array;
for ( var i = 0, il = attributes.position.array.length; i < il; i += 3 ) {
for ( var i = 0, il = positions.length / 3; i < il; i += 3 ) {
a = i;
b = i + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册