From 569c062a24681585af03f094cb0096f1648876c2 Mon Sep 17 00:00:00 2001 From: "chenmo.gl" Date: Wed, 22 Apr 2026 19:45:27 +0800 Subject: [PATCH] fix(entity): remove redundant self-name prefix check in _findChildByName method --- packages/core/src/Entity.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/core/src/Entity.ts b/packages/core/src/Entity.ts index 14ec84e8b..eb21caadb 100644 --- a/packages/core/src/Entity.ts +++ b/packages/core/src/Entity.ts @@ -375,14 +375,6 @@ export class Entity extends EngineObject { return this; } - // Some imported animation clips are normalized to include the single scene root - // name (for example "mixamorig:Hips/..."), while the Animator may already sit on - // that root entity. Accept a self-name prefix so wrapped model roots and - // standalone single-root clips resolve through the same path convention. - if (splits[0] === this.name) { - return splits.length === 1 ? this : Entity._findChildByName(this, 0, splits, 1); - } - return Entity._findChildByName(this, 0, splits, 0); }