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:
Diffstat (limited to 'source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c')
-rw-r--r--source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c6
1 files changed, 3 insertions, 3 deletions
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 a5deb47a753..37ad31db642 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
@@ -316,14 +316,14 @@ static int manipulator_grab_test_select(
if (manipulator_window_project_2d(
C, mpr, (const float[2]){UNPACK2(event->mval)}, 2, true, point_local) == false)
{
- return 0;
+ return -1;
}
if (len_squared_v2(point_local) < SQUARE(mpr->scale_final)) {
- return true;
+ return 0;
}
- return 0;
+ return -1;
}
static void manipulator_grab_property_update(wmManipulator *mpr, wmManipulatorProperty *mpr_prop)