AnimGraphNode dereferenced when used in constructor

A bit of a mouthful but check this out. Download this project:

  1. Open MyActor.cpp and comment out lines 12-14.
  2. Load the project, open the animation blueprint (SK_ProtoTurret_Skeleton_AnimBlueprint).
  3. Add the node “Turret Rotation”, compile, save and close the project.
  4. Re-open the project and animation blueprint and note “Turret Rotation” is still there.
  5. Uncomment the code in MyActor.cpp and re open the project (it may be best to do it from VS so it compiles).
  6. Open the animation blueprint, wheres the node gone!