Reset crest mode on layer change
This commit is contained in:
parent
8d831676cc
commit
ed18f10c7f
@ -23,6 +23,7 @@ function Tool (dotgrid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.reset = function () {
|
this.reset = function () {
|
||||||
|
this.settings.crest = false
|
||||||
this.styles[0].mirror_style = 0
|
this.styles[0].mirror_style = 0
|
||||||
this.styles[1].mirror_style = 0
|
this.styles[1].mirror_style = 0
|
||||||
this.styles[2].mirror_style = 0
|
this.styles[2].mirror_style = 0
|
||||||
@ -354,6 +355,9 @@ function Tool (dotgrid) {
|
|||||||
|
|
||||||
this.selectLayer = function (id) {
|
this.selectLayer = function (id) {
|
||||||
this.index = clamp(id, 0, 2)
|
this.index = clamp(id, 0, 2)
|
||||||
|
|
||||||
|
if (this.index !== 0) { this.settings.crest = false }
|
||||||
|
|
||||||
this.clear()
|
this.clear()
|
||||||
dotgrid.renderer.update()
|
dotgrid.renderer.update()
|
||||||
dotgrid.interface.update(true)
|
dotgrid.interface.update(true)
|
||||||
|
Loading…
Reference in New Issue
Block a user