Skip to content

Commit

Permalink
fix: group listener bug (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
cptbtptpbcptdtptp authored Dec 13, 2024
1 parent 3bfc9c0 commit bbc8901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gizmo/src/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bbc8901

Please sign in to comment.