Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-06-17 04:55:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-06-17 04:55:53 +0300
commit57c9bc9bb0b4caedd850d0f6797d3d010217bd78 (patch)
treeabdf93f609f369028e7897de518ab94a36edd930 /source/blender/editors/manipulator_library/dial3d_manipulator.c
parent03f67fd5b0e6c68632bfaa21efa61343f721f994 (diff)
Manipulator: fix general purpose dial use
Wasn't checking own location when checking if flip is needed.
Diffstat (limited to 'source/blender/editors/manipulator_library/dial3d_manipulator.c')
-rw-r--r--source/blender/editors/manipulator_library/dial3d_manipulator.c2
1 files changed, 1 insertions, 1 deletions
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;