From 85e7f8ce36f9835ec916d7d1d14488061bc58987 Mon Sep 17 00:00:00 2001 From: cptbtptpbcptdtptp Date: Mon, 20 Nov 2023 15:11:36 +0800 Subject: [PATCH] fix: group bug --- packages/gizmo/src/Group.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/gizmo/src/Group.ts b/packages/gizmo/src/Group.ts index a6682c9b..c15e3d7a 100644 --- a/packages/gizmo/src/Group.ts +++ b/packages/gizmo/src/Group.ts @@ -338,6 +338,9 @@ export class Group { } } } + if (tempBoundBox.getExtent(out).length() <= 0) { + isEffective = false; + } if (isEffective) { tempBoundBox.getCenter(out); } else {