Explorar o código

fix bug in conversion of BufferedGeometry to Geometry.

Ben Houston %!s(int64=9) %!d(string=hai) anos
pai
achega
5dd5065a2e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );