Explorar el Código

BufferGeometry: Fix .setFromPoints()

Mugen87 hace 7 años
padre
commit
9aef29984c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -341,7 +341,7 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
 		for ( var i = 0, l = points.length; i < l; i ++ ) {
 
 			var point = points[ i ];
-			position.push( point.x, point.y, 0 );
+			position.push( point.x, point.y, point.z || 0 );
 
 		}