Fixing issue #73

This commit is contained in:
neauoire 2020-03-24 20:17:13 +09:00
parent 9f50ce97b4
commit 90368d28d8

View File

@ -1420,7 +1420,8 @@ function Tool (client) {
if (!type) { return false }
if (type === 'close') {
const prev = this.layer()[this.layer().length - 1]
if (!prev || prev.type === 'close') {
console.log(this.vertices.length)
if (!prev || prev.type === 'close' || this.vertices.length !== 0) {
return false
}
}