Reset crest mode on layer change

This commit is contained in:
Devine Lu Linvega 2019-01-10 17:14:01 +12:00
parent 8d831676cc
commit ed18f10c7f

View File

@ -23,6 +23,7 @@ function Tool (dotgrid) {
}
this.reset = function () {
this.settings.crest = false
this.styles[0].mirror_style = 0
this.styles[1].mirror_style = 0
this.styles[2].mirror_style = 0
@ -354,6 +355,9 @@ function Tool (dotgrid) {
this.selectLayer = function (id) {
this.index = clamp(id, 0, 2)
if (this.index !== 0) { this.settings.crest = false }
this.clear()
dotgrid.renderer.update()
dotgrid.interface.update(true)