Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodBoyDigital committed May 13, 2024
1 parent 6a1f23f commit 2f10ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
5 changes: 0 additions & 5 deletions src/scene/container/container-mixins/effectsMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ export const effectsMixin: Partial<Container> = {
renderGroup.structureDidChange = true;
}

// if (this.renderGroup)
// {
// this.renderGroup.structureDidChange = true;
// }

this._updateIsSimple();
},
/**
Expand Down
12 changes: 3 additions & 9 deletions tests/scene/scene.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ describe('Scene', () =>

expect(container.renderGroup).toEqual(container.renderGroup);
expect(container2.parentRenderGroup).toEqual(container.renderGroup);
// expect(child.renderGroup).toEqual(container2.renderGroup);

expect(child2.parentRenderGroup).toEqual(container2.renderGroup);
expect(child3.parentRenderGroup).toEqual(container.renderGroup);
Expand Down Expand Up @@ -365,6 +364,7 @@ describe('Scene', () =>
expect(child3.relativeRenderGroupDepth).toEqual(1);
});

// eslint-disable-next-line jest/expect-expect
it('should register update in the update array..', async () =>
{
const container = new Container({
Expand Down Expand Up @@ -425,8 +425,6 @@ describe('Scene', () =>
compareUpdateList([child, container2], container.renderGroup, 1);

compareUpdateList([child2, child3], container.renderGroup, 2);

expect(true).toBeTrue();
});

it('should appear in update array correctly if it changes layer group', async () =>
Expand Down Expand Up @@ -470,10 +468,9 @@ describe('Scene', () =>
compareUpdateList([], container.renderGroup, 1);

compareUpdateList([child], container2.renderGroup, 2);

expect(true).toBeTrue();
});

// eslint-disable-next-line jest/expect-expect
it('should appear in update array correctly if it changes layer group parents', async () =>
{
const container = new Container({
Expand Down Expand Up @@ -532,10 +529,9 @@ describe('Scene', () =>
compareUpdateList([child], container.renderGroup, 1);

compareUpdateList([child3], container2.renderGroup, 1);

expect(true).toBeTrue();
});

// eslint-disable-next-line jest/expect-expect
it('should update layers correctly if you attach a render group and it has updated children..', async () =>
{
const container = new Container();
Expand Down Expand Up @@ -582,8 +578,6 @@ describe('Scene', () =>

compareUpdateList([child], container.renderGroup, 1);

expect(true).toBeTrue();

// console.log(container2.layerGroup.childrenToUpdate[1])
// expect(container2.layerGroup.childrenToUpdate[1]).toEqual({
// list: [child2, child3],
Expand Down

0 comments on commit 2f10ef4

Please sign in to comment.