Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-10-22 22:15:25 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-10-23 10:44:38 +0300
commit9441c640c82a7eb07822c0349882f0f3f9d4d896 (patch)
tree8a9ead68c8b37e6d69e3dd59a255ad98b93daf6d
parentaf661ad75b4b0324c2a196c7f8714e42a2465046 (diff)
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
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index adc62b23559..ae0d43bcf5c 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -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. */