NDOF: Removed impact of the auto orbit center on Fly Mode

Remove the impact of Auto orbit center preference onto Fly mode.
Until now, it was possible to experience dynamic translation speed
changes in the Fly mode with Auto preference enabled for the orbit
center. This was not desired.

Ref !141035
This commit is contained in:
Patryk-Skowronski
2025-06-27 08:02:34 +00:00
committed by Campbell Barton
parent d67b705d1c
commit 5f28ef5574

View File

@@ -419,6 +419,9 @@ void view3d_ndof_fly(const wmNDOFMotionData &ndof,
static bool ndof_orbit_center_is_auto(const View3D *v3d, const RegionView3D *rv3d)
{
if (!NDOF_IS_ORBIT_AROUND_CENTER_MODE(&U)) {
return false;
}
if ((U.ndof_flag & NDOF_ORBIT_CENTER_AUTO) == 0) {
return false;
}