GetClassDefaults no longer can access parent variables

Since upgrading from 4.18 to 4.19, the GetClassDefaults node can no longer access parents class’ variables.
The node will show the variables in the PinOptions, but upon compiling any node not in the direct class will be removed.
This can be solved by first casting to the specific parent class you want, but this results in less clean blueprint code.

Example:
c++ class : Weapon
Variable float : Damage

Blueprint class : BP_Weapon (child of Weapon)
Variable StaticMesh : Weapon Mesh

Blueprint class : BP_Axe (child of BP_Weapon)

In this example, if i have variable of that is a class reference to Weapon, GetClassDefaults can only show Damage (as expected)

GetClassDefaults with a reference to BP_Weapon will only be able to show the Weapon Mesh variable (in 4.18 i could make it show Damage too)

GetClassDefaults with a BP_Axe reference won’t be able to access any variables. (4.18 can show both weapon mesh and damage)

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks,