Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curve/editcurve_select.c
| Show First 20 Lines • Show All 1,984 Lines • ▼ Show 20 Lines | static int edcu_shortest_path_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| } | } | ||||
| BKE_curve_nurb_vert_active_set(cu, nu_dst, vert_dst_p); | BKE_curve_nurb_vert_active_set(cu, nu_dst, vert_dst_p); | ||||
| if (vc.view_layer->basact != basact) { | if (vc.view_layer->basact != basact) { | ||||
| ED_object_base_activate(C, basact); | ED_object_base_activate(C, basact); | ||||
| } | } | ||||
| DEG_id_tag_update(obedit->data, ID_RECALC_SELECT); | DEG_id_tag_update(obedit->data, ID_RECALC_SELECT | ID_RECALC_COPY_ON_WRITE); | ||||
| WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data); | WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void CURVE_OT_shortest_path_pick(wmOperatorType *ot) | void CURVE_OT_shortest_path_pick(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Pick Shortest Path"; | ot->name = "Pick Shortest Path"; | ||||
| Show All 12 Lines | |||||