Description

FRotator::SetClosestToMe(FRotator) doesn't set the correct value.

Attached are files with the demonstrative code.

Found in 4.23.1 CL#9631420
Reproduced in 4.24 Preview 4 CL#10570792, 4.25 CL#10520629

Steps to Reproduce

1. Create a C++ project.
2. Create a class using the code in the attached files.
3. Place an instance of the class in a level and play the level.
4. Look at the output log.

Results: RotatorB's roll valuer is 180.

Expected: RotatorB roll valuer is 0.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-85593 in the post.

3
Login to Vote

Won't Fix
ComponentUE - Foundation - Core
Affects Versions4.23.14.244.25
CreatedDec 10, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021
View Jira Issue