While this patch works, it exposes some issues which need some thought.
In most cases I've set the behavior to something that seems reasonable,
noting issues below.
- The cursor tool was intended to keep the same workflow for 2.79 users.
If anyone is using the Cursor tool for this purpose, the gizmo will get in the way.
- Having the transform orientations option next to the existing gizmo orientation needs some differentiation.
- The orientation currently uses the selection unless you use "Cursor" (side-note, in this case users might want cursor by default).
In practice the default is "Global", so it's not that bad, when the value is "Local" it's a bit confusing that it uses the selected objects orientation, however this is correct since "Cursor" is the cursor local orientation.
- The ideal pivot point behavior isn't as straightforward as it might be either.
Currently I've set it so median/bound-box use the cursor center, all other options work the same as object-mode, so active for example will use the active object, vertex, edge... etc.