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

Merge pull request #4789 from haeric/raycaster-buffergeometry

Fix Raycaster.intersectObject for indexless BufferGeometry
......@@ -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.
先完成此消息的编辑!
想要评论请 注册