Commit: 57c9bc9bb0b4caedd850d0f6797d3d010217bd78
Author: Campbell Barton
Date:   Sat Jun 17 11:55:53 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB57c9bc9bb0b4caedd850d0f6797d3d010217bd78

Manipulator: fix general purpose dial use

Wasn't checking own location when checking if flip is needed.

===================================================================

M       source/blender/editors/manipulator_library/dial3d_manipulator.c

===================================================================

diff --git a/source/blender/editors/manipulator_library/dial3d_manipulator.c 
b/source/blender/editors/manipulator_library/dial3d_manipulator.c
index ea406590e59..b3b78826650 100644
--- a/source/blender/editors/manipulator_library/dial3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/dial3d_manipulator.c
@@ -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;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to