Ver Fonte

Projector: Fixed remaining attributes.index reference.

Mr.doob há 10 anos atrás
pai
commit
624465f397
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      examples/js/renderers/Projector.js

+ 2 - 2
examples/js/renderers/Projector.js

@@ -616,9 +616,9 @@ THREE.Projector = function () {
 
 
 						}
 						}
 
 
-						if ( attributes.index !== undefined ) {
+						if ( geometry.index !== null ) {
 
 
-							var indices = attributes.index.array;
+							var indices = geometry.index.array;
 
 
 							for ( var i = 0, l = indices.length; i < l; i += 2 ) {
 							for ( var i = 0, l = indices.length; i < l; i += 2 ) {