Fixing issue #73
This commit is contained in:
parent
e701d78ef0
commit
9f50ce97b4
@ -229,7 +229,8 @@ function Tool (client) {
|
|||||||
// Cannot cast close twice
|
// Cannot cast close twice
|
||||||
if (type === 'close') {
|
if (type === 'close') {
|
||||||
const prev = this.layer()[this.layer().length - 1]
|
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
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user