Skip to content

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

2 participants