Separated the mirror render per layer

This commit is contained in:
Devine Lu Linvega
2018-04-16 16:24:09 +12:00
parent 235cb7ec2e
commit 932b5af7c7
2 changed files with 19 additions and 21 deletions

View File

@@ -407,12 +407,10 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
this.draw();
}
this.mirror_index = 0;
this.mod_mirror = function()
{
this.mirror_index += 1;
this.mirror_index = this.mirror_index > 6 ? 0 : this.mirror_index;
this.tool.style().mirror_style += 1;
this.tool.style().mirror_style = this.tool.style().mirror_style > 7 ? 0 : this.tool.style().mirror_style;
this.draw();
}