Browse Source

fix grid init (width, height)

ChuckAtShiro 6 years ago
parent
commit
dcff6f64ec
1 changed files with 2 additions and 2 deletions
  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. ) {
 	public function new( width : Int, height : Int, cellWidth = 1., cellHeight = 1. ) {
 		this.width = width;
 		this.width = width;
 		this.height = height;
 		this.height = height;
-		this.cellWidth = width;
-		this.cellHeight = height;
+		this.cellWidth = cellWidth;
+		this.cellHeight = cellHeight;
 
 
 		var idx = new hxd.IndexBuffer();
 		var idx = new hxd.IndexBuffer();
 		for( y in 0...height )
 		for( y in 0...height )