Skip to content

Commit

Permalink
fix Render.grid
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Nov 28, 2016
1 parent 86c4a61 commit dd83386
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/render/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,9 +1048,9 @@ var Vector = require('../geometry/Vector');
if (grid.buckets[bucketId].length < 2)
continue;

var region = bucketId.split(',');
c.rect(0.5 + parseInt(region[0], 10) * grid.bucketWidth,
0.5 + parseInt(region[1], 10) * grid.bucketHeight,
var region = bucketId.split(/C|R/);
c.rect(0.5 + parseInt(region[1], 10) * grid.bucketWidth,
0.5 + parseInt(region[2], 10) * grid.bucketHeight,
grid.bucketWidth,
grid.bucketHeight);
}
Expand Down

0 comments on commit dd83386

Please sign in to comment.