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

Prevent component leakage in updateComponents #3212

Merged
merged 2 commits into from
Nov 1, 2017

Conversation

wmurphyrd
Copy link
Collaborator

Description: Prevent an edge case wherein an entity could erroneously add its components to its child entities. Fix #3200

Changes proposed:

  • Move componentsToUpdate object from IIFE closure to instance variable

The diff is messy due to a change in indentation level for updateComponents. The actual changes to the method were 1) remove the IIFE and 2) declare a local componentsToUpdate variable that points to the instance variable

@dmarcos
Copy link
Member

dmarcos commented Nov 1, 2017

Thank you!

@dmarcos dmarcos merged commit ad8178b into aframevr:master Nov 1, 2017
@wmurphyrd wmurphyrd deleted the safe-update-components branch November 1, 2017 17:45
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.

2 participants