Fix T81934: Painting/Sculpting in ortho fails to let strokes pass through clipped geometry
Caused by rB7878adf49cff. When getting the stroke location via raycast in ortho view, the above commit flipped the condition of the check to perform adjustments on the rays start/end. This would thus happen (even though it shouldnt), resulting in wrong depth and stroke location. Now just flip the condition back, so adjustments only happen when clipping is OFF. Maniphest Tasks: T81934 Differential Revision: https://developer.blender.org/D9318
This commit is contained in:
parent
af661ad75b
commit
9441c640c8
Notes:
blender-bot
2023-02-14 00:06:52 +01:00
Referenced by issue #81934, In Ortho view, Clipping Regions fail to let sculpt strokes pass through hidden geometry
|
@ -7186,7 +7186,7 @@ float SCULPT_raycast_init(ViewContext *vc,
|
|||
|
||||
if ((rv3d->is_persp == false) &&
|
||||
/* If the ray is clipped, don't adjust its start/end. */
|
||||
RV3D_CLIPPING_ENABLED(v3d, rv3d)) {
|
||||
!RV3D_CLIPPING_ENABLED(v3d, rv3d)) {
|
||||
BKE_pbvh_raycast_project_ray_root(ob->sculpt->pbvh, original, ray_start, ray_end, ray_normal);
|
||||
|
||||
/* rRecalculate the normal. */
|
||||
|
|
Loading…
Reference in New Issue