Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_polybuild.c
| Show First 20 Lines • Show All 410 Lines • ▼ Show 20 Lines | static BMElem *edbm_hover_preselect( | ||||
| ED_view3d_init_mats_rv3d(vc.obedit, vc.rv3d); | ED_view3d_init_mats_rv3d(vc.obedit, vc.rv3d); | ||||
| const float mval_fl[2] = {UNPACK2(mval)}; | const float mval_fl[2] = {UNPACK2(mval)}; | ||||
| float ray_origin[3], ray_direction[3]; | float ray_origin[3], ray_direction[3]; | ||||
| BMElem *ele_best = NULL; | BMElem *ele_best = NULL; | ||||
| if (ED_view3d_win_to_ray( | if (ED_view3d_win_to_ray( | ||||
| CTX_data_depsgraph(C), | |||||
| vc.ar, vc.v3d, mval_fl, | vc.ar, vc.v3d, mval_fl, | ||||
| ray_origin, ray_direction, true)) | ray_origin, ray_direction, true)) | ||||
| { | { | ||||
| BMEdge *e; | BMEdge *e; | ||||
| BMIter eiter; | BMIter eiter; | ||||
| float dist_sq_best = FLT_MAX; | float dist_sq_best = FLT_MAX; | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||