Procházet zdrojové kódy

Projector: Fixed remaining attributes.index reference.

Mr.doob před 10 roky
rodič
revize
624465f397
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 ) {
 

粤ICP备19079148号