[Bf-blender-cvs] [159a7e8b380] blender2.8: UI: replace transform hand icon w/ 4 arrows

Campbell Barton noreply at git.blender.org
Sat Apr 28 09:15:45 CEST 2018


Commit: 159a7e8b380a4d3fdea93fa87969da2ac9d18ab2
Author: Campbell Barton
Date:   Sat Apr 28 09:14:02 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB159a7e8b380a4d3fdea93fa87969da2ac9d18ab2

UI: replace transform hand icon w/ 4 arrows

The hand doesn't have a hotspot which you might want using manipulators

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

M	source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
M	source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
M	source/blender/editors/transform/transform_input.c

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

diff --git a/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
index 23c6030f091..00eff3654b9 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/cage2d_manipulator.c
@@ -704,7 +704,7 @@ static int manipulator_cage2d_get_cursor(wmManipulator *mpr)
 
 	switch (highlight_part) {
 		case ED_MANIPULATOR_CAGE2D_PART_TRANSLATE:
-			return BC_HANDCURSOR;
+			return BC_NSEW_SCROLLCURSOR;
 		case ED_MANIPULATOR_CAGE2D_PART_SCALE_MIN_X:
 		case ED_MANIPULATOR_CAGE2D_PART_SCALE_MAX_X:
 			return CURSOR_X_MOVE;
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 4e62c9c396e..9c6c601b7ae 100644
--- a/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
+++ b/source/blender/editors/manipulator_library/manipulator_types/grab3d_manipulator.c
@@ -323,7 +323,7 @@ static void manipulator_grab_property_update(wmManipulator *mpr, wmManipulatorPr
 
 static int manipulator_grab_cursor_get(wmManipulator *UNUSED(mpr))
 {
-	return BC_HANDCURSOR;
+	return BC_NSEW_SCROLLCURSOR;
 }
 
 /* -------------------------------------------------------------------- */
diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c
index 6fe152c8f03..db761e5e23a 100644
--- a/source/blender/editors/transform/transform_input.c
+++ b/source/blender/editors/transform/transform_input.c
@@ -351,7 +351,7 @@ void initMouseInputMode(TransInfo *t, MouseInput *mi, MouseInputMode mode)
 		case HLP_NONE:
 			/* INPUT_VECTOR, INPUT_CUSTOM_RATIO, INPUT_CUSTOM_RATIO_FLIP */
 			if (t->flag & T_MODAL) {
-				WM_cursor_set(win, BC_HANDCURSOR);
+				WM_cursor_set(win, BC_NSEW_SCROLLCURSOR);
 			}
 			break;
 		case HLP_SPRING:



More information about the Bf-blender-cvs mailing list