Przeglądaj źródła

Implemented @m-schuetz's bugfix for indexed BufferGeometry in Raycaster. See #4768.

Mr.doob 11 lat temu
rodzic
commit
ac88539320
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/Raycaster.js

+ 1 - 1
src/core/Raycaster.js

@@ -143,7 +143,7 @@
 
 
 					if ( offsets.length === 0 ) {
 					if ( offsets.length === 0 ) {
 
 
-						offsets = [ { start: 0, count: positions.length, index: 0 } ];
+						offsets = [ { start: 0, count: indices.length, index: 0 } ];
 
 
 					}
 					}