From eb659402b4ca9d992272c3a677a7c301cfef03c9 Mon Sep 17 00:00:00 2001 From: cptbtptp Date: Fri, 13 Dec 2024 16:59:37 +0800 Subject: [PATCH] fix: group listener bug --- packages/gizmo/src/Group.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gizmo/src/Group.ts b/packages/gizmo/src/Group.ts index 724a46eb..9326e097 100644 --- a/packages/gizmo/src/Group.ts +++ b/packages/gizmo/src/Group.ts @@ -220,7 +220,7 @@ export class Group { this._entities.push(entity); const fun = this._onEntityWorldTransformChange(entity); // @ts-ignore - const flagManager = entity.transform._updateFlagManager; + const flagManager = entity._updateFlagManager; flagManager.addListener(fun); this._listeners.push({ flagManager, fun }); fun();