[] Rotating multiple items at once sometimes breaks with Relative gizmo angle

Sometimes, rotating a selection of items while the gizmos are in Relative mode will cause the items in the selection to get shifted far out of place the more you rotate it.

Steps to Reproduce

I haven’t been paying enough attention to know any ways to force the rotation to break but it seems like it happens often when the selection is at an angle, or there’s a lot of objects at different angles in the selection. In the video I linked below there’s ~10 pieces of track angled differently, and the straight piece of track is rotated -143.05 degrees.

Notes / Media

Selection breaking when rotated:

Selection rotating properly when the gizmos are set to Global: