[Bf-blender-cvs] [f23bd736de8] greasepencil-object: GP: Curve edit mode is now default after initial line

Charlie Jolly noreply at git.blender.org
Fri Dec 7 13:27:38 CET 2018


Commit: f23bd736de8fba934a695b3714d378b43a565f35
Author: Charlie Jolly
Date:   Fri Dec 7 12:27:01 2018 +0000
Branches: greasepencil-object
https://developer.blender.org/rBf23bd736de8fba934a695b3714d378b43a565f35

GP: Curve edit mode is now default after initial line

No need to hold shift.

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

M	source/blender/editors/gpencil/gpencil_primitive.c

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

diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index 5a07e37c86f..d1d21abb5dc 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -838,7 +838,7 @@ static void gpencil_primitive_bezier_event_handling(bContext *C, wmOperator *op,
 	float a = len_v2v2_int(event->mval, tgpi->top);
 	float b = len_v2v2_int(event->mval, tgpi->bottom);
 
-	if (event->shift) {
+	if (tgpi->flag == IN_CURVE_EDIT_BEZIER) {
 		if (a < 10 || b < 10) {
 			move = MOVE_ENDS;
 			WM_cursor_modal_set(win, BC_RING_CURSOR);
@@ -848,14 +848,11 @@ static void gpencil_primitive_bezier_event_handling(bContext *C, wmOperator *op,
 			WM_cursor_modal_set(win, BC_HANDCURSOR);
 		}
 	}
-	else {
-		WM_cursor_modal_set(win, BC_CROSSCURSOR);
-	}
 
 	switch (event->type) {
 	/* calculate new position */
 	case MOUSEMOVE:
-		if ((event->shift) && (event->val == KM_PRESS) && tgpi->sel_cp != CURVE_CP_NONE) {
+		if ((event->val == KM_PRESS) && tgpi->sel_cp != CURVE_CP_NONE) {
 			if (tgpi->sel_cp == CURVE_CP_T) {
 				copy_v2_v2_int(tgpi->top, event->mval);
 			}



More information about the Bf-blender-cvs mailing list