Uninitialized member in SceneComponent preventing UpdateTransform call

Build Type: Binary/Source

Build version: 4.11.0+

Detailed description of the issue:

There is an uninitialized variable in USceneComponent which was added in 4.11 to control when the virtual function OnUpdateTransform is is called after the component was moved:

/** If true, OnUpdateTransform virtual will be called each time this component is moved. */
uint32 bWantsOnUpdateTransform:1;

This is not initialized and presents undefined behaviour. In our particular case, this was false, and prevented the OnUpdateTransform from ever being called, which broke behaviour on a derived type.

Proposed fix:
We have initialized this to true in the USceneComponent constructor.

The 4.11 release notes do highlight this change:

If you make use of the OnUpdateTransform virtual on USceneComponent, you now need to makes sure bWantsOnUpdateTransform is set true.

I believe this is still an issue as the value is initially undefined.

Hey RHoath-

The bWantsOnUpdateTransformvariable is working as intended. As you mentioned, the release notes state that it needs to be set so that issues such as this can be avoided.

Cheers