[4.7] - Defaults are zeroed out upon BP Construction

Hello,

I’ve managed to narrow it down to what seems to be a circular dependency issue.

To reproduce:

  1. create a MyCharacter blueprint, add an int variable and set its default value

  2. create a MyCharacter_Child blueprint, based on first blueprint

  3. create an UMG widget with a button that when clicked, gets player character and tries to cast it to MyCharacter_Child

  4. in MyCharacter blueprint, create that widget in BeginPlay

  5. close project and reopen (you don’t even have to click play) - default value of int variable will be reset to 0 on child bp