This PR intended to fix #4724#4731
Conversation
|
To fully fix the issue
the order in |
Additionally, the current situation looks like everything works perfectly on the client side. What I don’t understand, however, is why the logic was refined to “fix” one bug while another one was left there. That 278 (on server side) value is obtained from 30 radians, which equals 1718.8733854°. 1718.8733854 % 360 = 278.8733854° I haven’t had time to fully look into things yet, but I think this should be fixed as well. What do you think? |
It’s normal when a PR does more than it should. The author of PR apparently overlooked it.
Sure |
Client doesn't need any adjustments, bugs mentioned in #4724 are fully fixed. |
Summary
Fix the order of operations in
CStaticFunctionDefinitions::AttachElementson the server-side. Move theConvertDegreesToRadians(vecRotation)call to afterSetAttachedOffsets, ensuring that rotation values are stored in degrees before being converted to radians for internal use. This restores the correct behavior ofgetElementAttachedOffsets, which should return rotation values in degrees to match the input toattachElements.Motivation
#4726
#4724
Test plan
#4726
#4724
Checklist