[4.9 P1][4.8.3] A local structure does initialized with wrong default values

№ 0

Title: [4.9 P1][4.8.3] A local structure does initialized with wrong default values.

Importance: Major.

Branch: Binary

Build version:
Version: 4.8.3-2634408+++depot+UE4-Releases+4.8
Version: 4.9.0-2633546+++depot+UE4-Releases+4.9

System Specs: It will be provided by request.

Attachments: It will be provided by request.

Detailed description of the issue:
Local function structure doesn’t take user defined default values.

Screenshots/Link to video: It will be provided by request.

Reproduction steps:

  1. Create a new blank project.
  2. Create a structure with attributes of base types those have default values.
  3. Create an actor BP.
  4. Create a function in actor BP.
  5. Create a local variable in function with a type like the created structure has.
  6. Make sure that local structure attributes haven’t got the default values.
  7. Make sure that if we added the structure as BP member, the structure attributes have set up with default structure values.

Frequency: 100%

Expected behavior:
Function local structure attributes should be set up with default structure values.

Hi ,

First off, thank you for the well formatted and thorough bug report. :slight_smile:

I reproduced your results in 4.8.3 but default Struct values in Local Variables work fine for me in the 4.9 Preview 1. You did test this in a new blank project and didn’t convert it to 4.9, correct?

Hi, TJ.
Unfortunately I haven’t been able to reproduce this again in 4.9 P1. It is looks like I forget to write some reproduction steps for 4.9.
If I will reproduce it, I will post the report, again.

Sounds good. Just post back here if you find a repro and it will reopen the report.

Cheers,

TJ