From a2f223101490fceea2fa5d58acb4165c6d2d7bc1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 11 Dec 2017 17:07:40 +1100 Subject: [PATCH] Fix grab3d manipulator in a 2D group Was taking scale into account twice. --- .../manipulator_library/manipulator_types/grab3d_manipulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c index 151e173e5e6..4e62c9c396e 100644 --- a/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c +++ b/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c @@ -302,7 +302,8 @@ static int manipulator_grab_test_select( return -1; } - if (len_squared_v2(point_local) < SQUARE(mpr->scale_final)) { + /* The 'mpr->scale_final' is already applied when projecting. */ + if (len_squared_v2(point_local) < 1.0f) { return 0; }