Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_walk.c
| Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | static bool walk_floor_distance_get(RegionView3D *rv3d, | ||||
| add_v3_v3(ray_start, dvec_tmp); | add_v3_v3(ray_start, dvec_tmp); | ||||
| ret = ED_transform_snap_object_project_ray( | ret = ED_transform_snap_object_project_ray( | ||||
| walk->snap_context, | walk->snap_context, | ||||
| walk->depsgraph, | walk->depsgraph, | ||||
| &(const struct SnapObjectParams){ | &(const struct SnapObjectParams){ | ||||
| .snap_select = SNAP_ALL, | .snap_select = SNAP_ALL, | ||||
| /* Avoid having to convert the edit-mesh to a regular mesh. */ | /* Avoid having to convert the edit-mesh to a regular mesh. */ | ||||
| .use_object_edit_cage = true, | .edit_mode_type = SNAP_GEOM_EDIT, | ||||
| }, | }, | ||||
| ray_start, | ray_start, | ||||
| ray_normal, | ray_normal, | ||||
| r_distance, | r_distance, | ||||
| r_location, | r_location, | ||||
| r_normal_dummy); | r_normal_dummy); | ||||
| /* artificially scale the distance to the scene size */ | /* artificially scale the distance to the scene size */ | ||||
| ▲ Show 20 Lines • Show All 1,056 Lines • Show Last 20 Lines | |||||