Fix curve shortest path picking with right-click select
This commit is contained in:
parent
9bcc83a5d6
commit
29eb891658
|
@ -4043,7 +4043,7 @@ def km_curve(params):
|
|||
{"properties": [("deselect", False)]}),
|
||||
("curve.select_linked_pick", {"type": 'L', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("deselect", True)]}),
|
||||
("curve.shortest_path_pick", {"type": params.select_mouse, "value": 'CLICK', "ctrl": True}, None),
|
||||
("curve.shortest_path_pick", {"type": params.select_mouse, "value": params.select_mouse_value, "ctrl": True}, None),
|
||||
("curve.separate", {"type": 'P', "value": 'PRESS'}, None),
|
||||
("curve.split", {"type": 'Y', "value": 'PRESS'}, None),
|
||||
("curve.extrude_move", {"type": 'E', "value": 'PRESS'}, None),
|
||||
|
|
|
@ -1825,7 +1825,7 @@ static float curve_calc_dist_span(Nurb *nu, int vert_src, int vert_dst)
|
|||
int i_prev, i;
|
||||
float dist = 0.0f;
|
||||
|
||||
BLI_assert(nu->pntsv == 1);
|
||||
BLI_assert(nu->pntsv <= 1);
|
||||
|
||||
i_prev = vert_src;
|
||||
i = (i_prev + 1) % u;
|
||||
|
|
Loading…
Reference in New Issue