From 905ece01869bcac68d18deb599dc1a2a1424389f Mon Sep 17 00:00:00 2001 From: liqikun Date: Tue, 28 May 2024 11:06:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=98=E5=88=B6=E4=B8=AD=E9=80=94?= =?UTF-8?q?=E9=80=80=E5=87=BA=EF=BC=8C=E6=AE=8B=E7=95=99=E7=BA=BF=E6=AE=B5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/base.ts b/src/base.ts index 4d38881..de15b0c 100644 --- a/src/base.ts +++ b/src/base.ts @@ -824,6 +824,7 @@ export default class Base { this.polygonEntity = null; this.outlineEntity = null; this.lineEntity = null; + if(this.points.length <= 2) this.removeTempLine(); } else if (this.type === 'line') { this.viewer.entities.remove(this.lineEntity); }