Default child struct values are not saved

Launcher Build: UE4.17.1

In the latest launcher engine build, parent structs don’t inherit their child struct’s default values OR retain child struct values set within the parent structure when saving. See attached gif. Closing and reopening a parent structure which had default values set within a child struct will revert any changes made/saved.

NOTE: Tested this on a blank project (Also attached) and this issue still occurred. UE4.16 does not appear to have this problem with data tables having the default values set, but it did display issues with parent structures inheriting child struct default values. After merging to 4.17 the default values are no longer being set.

Had a look through answerhub and have seen some for older engine version but not for 4.17.

213703-nodefaultstructvalues.gif

Steps to Repro

  1. Open Unreal Engine UE4.17.1
  2. Right click in the Content Browser > Blueprint > Create Structure called “Parent”
  3. Repeat Step 2 but call it “Child”
  4. In the Child struct, add a single Int variable and set the default to “-1”
  5. In the Parent struct, create a new variable as set the type to be your new child struct.
  6. Verify the default value (This will be Zero in the latest version). Set this again as “-1”
  7. Back in the Content Browser right click > Misc > Data Table and pick you Parent Structure
  8. In the data table, add a new row and verify the default value

Actual Result
The default value will be “0” instead of the “-1” set in the parent/child structure

Attached gif and Test Proj based on the above repro steps.

Hello Prototype6143,

I was able reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: Unreal Engine Issues and Bug Tracker (UE-49962)

Make it a great day

This happens not just with structures but with any variables defined in a base class, changing them to private or any other flags does not fix the issue. After relaunching editor they are reset to 0.