[Bug] In UAnimMontage, the last two fields are public in the game build and private in the editor build

The function SortAnimBranchingPointByTime() and the field bAnimBranchingPointNeedsSort in UAnimMontage (AnimMontage.h) are public when building the game only and private when building the editor. This is due to a private: tag in the #if WITH_EDITOR right before these two are declared.

To duplicate, add to a blank c++ projecct the code:

UAnimMontage* test;
test->SortAnimBranchingPointByTime();
auto test2 = test->bAnimBranchingPointNeedsSort;

Compile using Debug Editor, this code should generate a compile error. Compile using Debug and it should compile with no errors.

Hi jCoder,

Thanks for pointing this out to us. I have submitted a report about this issue for further investigation (TTP 349854).