Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASDisplayNode] Propagate traits before loading a subnode #1234

Merged
merged 1 commit into from
Nov 20, 2018

Conversation

rcancro
Copy link
Contributor

@rcancro rcancro commented Nov 14, 2018

#886 enforces that some nodes are loaded before they are sent a visiblity event, but it was not propagating the trait collection before forcing the load.

We are propagating traits in _setSupernode: (which was happening after the forced load). I moved the possible forced load to _setSupernode:, after propagating traits but before any visibility states are changed.

@CLAassistant
Copy link

CLAassistant commented Nov 14, 2018

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Would be great to have another approval from the core team and @wsdwsd0829.

TextureGroup#886 enforces that some nodes are loaded before they are sent a visiblity event, but it was not propagating the trait collection before forcing the load.

We are propagating traits in `_setSupernode:` (which was happening after the forced load). I moved the possible forced load to `_setSupernode:`, after propagating traits but before any visibility states are changed.
@wsdwsd0829
Copy link
Contributor

LGTM Thanks.

@nguyenhuy nguyenhuy merged commit 9cf54e8 into TextureGroup:master Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants