Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_tools.c
| Show First 20 Lines • Show All 303 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| Object *obedit = em->ob; | Object *obedit = em->ob; | ||||
| BMIter iter; | BMIter iter; | ||||
| BMVert *eve; | BMVert *eve; | ||||
| ED_view3d_init_mats_rv3d(obedit, ar->regiondata); | ED_view3d_init_mats_rv3d(obedit, ar->regiondata); | ||||
| 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), CTX_data_scene(C), CTX_data_scene_layer(C), 0, | CTX_data_main(C), CTX_data_scene(C), CTX_data_scene_layer(C), CTX_data_engine(C), 0, | ||||
| ar, CTX_wm_view3d(C)); | ar, CTX_wm_view3d(C)); | ||||
| BM_ITER_MESH (eve, &iter, em->bm, BM_VERTS_OF_MESH) { | BM_ITER_MESH (eve, &iter, em->bm, BM_VERTS_OF_MESH) { | ||||
| if (BM_elem_flag_test(eve, BM_ELEM_SELECT)) { | if (BM_elem_flag_test(eve, BM_ELEM_SELECT)) { | ||||
| float mval[2], co_proj[3]; | float mval[2], co_proj[3]; | ||||
| if (ED_view3d_project_float_object(ar, eve->co, mval, V3D_PROJ_TEST_NOP) == V3D_PROJ_RET_OK) { | if (ED_view3d_project_float_object(ar, eve->co, mval, V3D_PROJ_TEST_NOP) == V3D_PROJ_RET_OK) { | ||||
| if (ED_transform_snap_object_project_view3d_mixed( | if (ED_transform_snap_object_project_view3d_mixed( | ||||
| snap_context, | snap_context, | ||||
| ▲ Show 20 Lines • Show All 5,664 Lines • Show Last 20 Lines | |||||