diff --git a/src/scene/container/Container.ts b/src/scene/container/Container.ts index 8970bbe368..58393e099b 100644 --- a/src/scene/container/Container.ts +++ b/src/scene/container/Container.ts @@ -796,30 +796,6 @@ export class Container extends EventE parentRenderGroup.addChild(this); } - // find children render groups and move them out.. - // if (parentRenderGroup) - // { - // for (let i = 0; i < parentRenderGroup.renderGroupChildren.length; i++) - // { - // const childRenderGroup = parentRenderGroup.renderGroupChildren[i]; - // let parent = childRenderGroup.root; - - // while (parent) - // { - // if (parent === this) - // { - // this.renderGroup.addRenderGroupChild(childRenderGroup); - - // break; - // } - // parent = parent.parent; - // } - // } - - // parentRenderGroup.addRenderGroupChild(this.renderGroup); - // } - - // parentRenderGroup.removeChild(this); this._updateIsSimple(); // this group matrix will now forever be an identity matrix, diff --git a/src/scene/container/RenderGroup.ts b/src/scene/container/RenderGroup.ts index 526e1fdbb2..6c8514fe70 100644 --- a/src/scene/container/RenderGroup.ts +++ b/src/scene/container/RenderGroup.ts @@ -182,7 +182,6 @@ export class RenderGroup implements Instruction { child.parentRenderGroup._removeChildFromUpdate(child); } - // child.renderGroup = null; } else {