possible fix for crash mentioned in T48887 - Adjust the depth min to the object scale
This commit is contained in:
parent
5f7fd0444d
commit
f2fa73786b
Notes:
blender-bot
2023-02-14 09:38:57 +01:00
Referenced by issue #48887, in dayly nuild in ortho view snap not working
|
@ -1244,7 +1244,8 @@ static bool snapDerivedMesh(
|
|||
* away ray_start values (as returned in case of ortho view3d), see T38358.
|
||||
*/
|
||||
len_diff -= local_scale; /* make temp start point a bit away from bbox hit point. */
|
||||
madd_v3_v3v3fl(ray_start_local, ray_org_local, ray_normal_local, len_diff + depth_range[0]);
|
||||
madd_v3_v3v3fl(
|
||||
ray_start_local, ray_org_local, ray_normal_local, len_diff + depth_range[0] * local_scale);
|
||||
local_depth -= len_diff;
|
||||
}
|
||||
else {
|
||||
|
@ -1567,7 +1568,8 @@ static bool snapEditMesh(
|
|||
* (as returned in case of ortho view3d), see T38358.
|
||||
*/
|
||||
len_diff -= local_scale; /* make temp start point a bit away from bbox hit point. */
|
||||
madd_v3_v3v3fl(ray_start_local, ray_org_local, ray_normal_local, len_diff + depth_range[0]);
|
||||
madd_v3_v3v3fl(
|
||||
ray_start_local, ray_org_local, ray_normal_local, len_diff + depth_range[0] * local_scale);
|
||||
local_depth -= len_diff;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue