b113e848ef
Note: this is a back-port from `main`, details below, Original message: Add support for dynamic NDOF orbit center calculation. - When "Auto" NDOF preference is enabled: All visible objects in the viewport are used to calculate a bounding box center, if the bounds are outside the view or the center is behind the viewport, use a Z-Buffer test to calculate the depth in the middle of the region. - When "Use Selected Items" NDOF preferences is enabled, calculating the bounds from the selection. - An option to show the orbit center as a guide has also been added. Ref !129594 Co-authored-by: Kamil Galik <kgalik@3dconnexion.com> Back-ported as this change as this only missed the 4.4 branch by hours and is considered an important feature for 4.4 by 3dconnexion. This includes the following commits from main: 1a14d694983e822f81c29f34355cee55e1aaa0f6 30399fd1655b1bdb8bc64486d2f9bde1a3946d03 3a8658958f606ec3461f5beb6c43911554259ca7 da8d9d989ef654b56c571a34637ababcb4b24ff2 2a0ce11104beffbb93ecd6ecc8ae4a9026bf7a41 fb539baa89cf8c505e7e7be96939553af059a468