Sfoglia il codice sorgente

Merge pull request #7674 from bhouston/bufferGeometryToGeometryBugFix

Fix bug in conversion of BufferedGeometry to Geometry.
Mr.doob 10 anni fa
parent
commit
08e66ec875
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/core/Geometry.js

+ 1 - 1
src/core/Geometry.js

@@ -312,7 +312,7 @@ THREE.Geometry.prototype = {
 
 		} else {
 
-			for ( var i = 0; i < vertices.length / 3; i += 3 ) {
+			for ( var i = 0; i < vertices.length; i += 3 ) {
 
 				addFace( i, i + 1, i + 2 );
 

粤ICP备19079148号