From 216b8811f30d8cfe4a416b39ee8f6f59175a67da Mon Sep 17 00:00:00 2001 From: doouding Date: Mon, 18 Nov 2024 08:08:05 +0000 Subject: [PATCH] fix(edgeless): only clear surface selection when switching tool (#8753) --- packages/framework/block-std/src/gfx/tool/tool-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/block-std/src/gfx/tool/tool-controller.ts b/packages/framework/block-std/src/gfx/tool/tool-controller.ts index 26c80059ae55..500da0a52353 100644 --- a/packages/framework/block-std/src/gfx/tool/tool-controller.ts +++ b/packages/framework/block-std/src/gfx/tool/tool-controller.ts @@ -510,7 +510,7 @@ export class ToolController extends GfxExtension { return; } - this.gfx.selection.clear(); + this.gfx.selection.set({ elements: [] }); this.currentTool$.peek()?.deactivate(); this.currentToolName$.value = toolNameStr;