Manipulator: fix general purpose dial use

Wasn't checking own location when checking if flip is needed.
This commit is contained in:
Campbell Barton
2017-06-17 11:55:53 +10:00
parent 03f67fd5b0
commit 57c9bc9bb0

View File

@@ -199,7 +199,7 @@ static void dial_ghostarc_get_angles(
/* we might need to invert the direction of the angles */
float view_vec[3], axis_vec[3];
ED_view3d_global_to_vector(rv3d, rv3d->twmat[3], view_vec);
ED_view3d_global_to_vector(rv3d, dial->manipulator.origin, view_vec);
normalize_v3_v3(axis_vec, dial->direction);
if (dot_v3v3(view_vec, axis_vec) < 0.0f) {
inv = true;