Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curve/editcurve.c
| Context not available. | |||||
| const float mval[2] = {UNPACK2(event->mval)}; | const float mval[2] = {UNPACK2(event->mval)}; | ||||
| struct SnapObjectContext *snap_context = ED_transform_snap_object_context_create_view3d( | struct SnapObjectContext *snap_context = ED_transform_snap_object_context_create_view3d( | ||||
| CTX_data_main(C), vc.scene, vc.scene_layer, 0, | CTX_data_main(C), vc.scene, vc.scene_layer, SNAP_NOT_SELECTED, false, | ||||
| vc.ar, vc.v3d); | vc.ar, vc.v3d, 0); | ||||
| ED_transform_snap_object_project_view3d_mixed( | ED_transform_snap_object_project_view3d_mixed( | ||||
| snap_context, | snap_context, | ||||
| SCE_SELECT_FACE, | SCE_SELECT_FACE, | ||||
| &(const struct SnapObjectParams){ | |||||
| .snap_select = (vc.scene->obedit != NULL) ? SNAP_NOT_ACTIVE : SNAP_ALL, | |||||
| .use_object_edit_cage = false, | |||||
| }, | |||||
| mval, NULL, true, | mval, NULL, true, | ||||
| location, NULL); | location, NULL); | ||||
| Context not available. | |||||