Fixes #71, issue with history

This commit is contained in:
neauoire
2020-03-26 20:35:30 +09:00
parent ab540c0f74
commit c7912e02fe
4 changed files with 16 additions and 16 deletions

View File

@@ -20,10 +20,6 @@ function Tool (client) {
this.styles[2].color = client.theme.active.f_low
}
this.erase = function () {
this.layers = [[], [], []]
}
this.reset = function () {
this.styles[0].mirror_style = 0
this.styles[1].mirror_style = 0
@@ -36,6 +32,13 @@ function Tool (client) {
this.index = 0
}
this.erase = function () {
this.layers = [[], [], []]
this.vertices = []
client.renderer.update()
client.interface.update(true)
}
this.clear = function () {
this.vertices = []
client.renderer.update()