From 90368d28d8c51dad3dfc64345c4bf2836edb1132 Mon Sep 17 00:00:00 2001 From: neauoire Date: Tue, 24 Mar 2020 20:17:13 +0900 Subject: [PATCH] Fixing issue #73 --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 6bade1a..7e766a2 100644 --- a/index.html +++ b/index.html @@ -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 } }