瀏覽代碼

Projector: Fixed remaining attributes.index reference.

Mr.doob 10 年之前
父節點
當前提交
624465f397
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 ) {