Fix T42313: Ruler always measures 0.0
Passing 'ar' to snapObjectsRayEx would apply a ray-offset.
This commit is contained in:
parent
5362995fde
commit
6bd53bb707
Notes:
blender-bot
2023-02-14 09:55:26 +01:00
Referenced by issue #42313, Ruler always measures 0.0
|
@ -122,12 +122,10 @@ static bool ED_view3d_snap_ray(bContext *C, float r_co[3],
|
|||
bool ret;
|
||||
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
ARegion *ar = CTX_wm_region(C);
|
||||
struct Object *obedit = CTX_data_edit_object(C);
|
||||
|
||||
/* try snap edge, then face if it fails */
|
||||
ret = snapObjectsRayEx(scene, NULL, v3d, ar, obedit, SCE_SNAP_MODE_FACE,
|
||||
ret = snapObjectsRayEx(scene, NULL, NULL, NULL, obedit, SCE_SNAP_MODE_FACE,
|
||||
NULL, NULL,
|
||||
ray_start, ray_normal, &ray_dist,
|
||||
NULL, &dist_px, r_co, r_no_dummy, SNAP_ALL);
|
||||
|
|
Loading…
Reference in New Issue