提交 235925c2 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #7773 from Immugio/raycast-check-uvs-length

THREE.Mesh.raycast - check uvs array length before accessing
......@@ -316,7 +316,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
if ( intersection ) {
if ( uvs ) {
if ( uvs && uvs[ f ] ) {
var uvs_f = uvs[ f ];
uvA.copy( uvs_f[ 0 ] );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册