Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_gizmo_ruler.c
| Show First 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | if (do_thickness && inter->co_index != 1) { | ||||
| float *co_other; | float *co_other; | ||||
| co_other = ruler_item->co[inter->co_index == 0 ? 2 : 0]; | co_other = ruler_item->co[inter->co_index == 0 ? 2 : 0]; | ||||
| if (ED_transform_snap_object_project_view3d(snap_context, | if (ED_transform_snap_object_project_view3d(snap_context, | ||||
| depsgraph, | depsgraph, | ||||
| ruler_info->region, | ruler_info->region, | ||||
| v3d, | v3d, | ||||
| SCE_SNAP_MODE_FACE, | SCE_SNAP_MODE_FACE_RAYCAST, | ||||
| &(const struct SnapObjectParams){ | &(const struct SnapObjectParams){ | ||||
| .snap_target_select = SCE_SNAP_TARGET_ALL, | .snap_target_select = SCE_SNAP_TARGET_ALL, | ||||
| .edit_mode_type = SNAP_GEOM_CAGE, | .edit_mode_type = SNAP_GEOM_CAGE, | ||||
| }, | }, | ||||
| NULL, | |||||
| mval_fl, | mval_fl, | ||||
| NULL, | NULL, | ||||
| &dist_px, | &dist_px, | ||||
| co, | co, | ||||
| ray_normal)) { | ray_normal)) { | ||||
| negate_v3(ray_normal); | negate_v3(ray_normal); | ||||
| /* add some bias */ | /* add some bias */ | ||||
| madd_v3_v3v3fl(ray_start, co, ray_normal, eps_bias); | madd_v3_v3v3fl(ray_start, co, ray_normal, eps_bias); | ||||
| ▲ Show 20 Lines • Show All 1,051 Lines • Show Last 20 Lines | |||||