Skip to content

Conversation

@ngokevin
Copy link
Member

Description:

What was happening:

  1. Text component initializes.
  2. Text component sets to load font.
  3. Tick function tries to change text value, but font not loaded so nothing happens.
  4. Font loads.
  5. Tick function tries to change text value, but since the data did not change from step 3, nothing ever happens no matter how many ticks.

Changes proposed:

  • Reference self for the component rather than referencing old data in case it changes.
@dmarcos
Copy link
Member

dmarcos commented Jun 23, 2017

Any test we can add?

@ngokevin
Copy link
Member Author

Added

@dmarcos dmarcos merged commit 60a440c into aframevr:master Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants