Explorar el Código

fix grid init (width, height)

ChuckAtShiro hace 6 años
padre
commit
dcff6f64ec
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      h3d/prim/Grid.hx

+ 2 - 2
h3d/prim/Grid.hx

@@ -10,8 +10,8 @@ class Grid extends Polygon {
 	public function new( width : Int, height : Int, cellWidth = 1., cellHeight = 1. ) {
 		this.width = width;
 		this.height = height;
-		this.cellWidth = width;
-		this.cellHeight = height;
+		this.cellWidth = cellWidth;
+		this.cellHeight = cellHeight;
 
 		var idx = new hxd.IndexBuffer();
 		for( y in 0...height )