[Bf-blender-cvs] [29707e34376] master: Fix T70387: Sculpting with Original Normal rips edges

Pablo Dobarro noreply at git.blender.org
Mon Oct 7 15:20:04 CEST 2019


Commit: 29707e3437671c5e962646c95b1f36e12e93eb75
Author: Pablo Dobarro
Date:   Thu Oct 3 17:49:23 2019 +0200
Branches: master
https://developer.blender.org/rB29707e3437671c5e962646c95b1f36e12e93eb75

Fix T70387: Sculpting with Original Normal rips edges

Reviewed By: brecht

Maniphest Tasks: T70387

Differential Revision: https://developer.blender.org/D5982

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 853324c7e17..cfbf3130e30 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5300,7 +5300,12 @@ static void do_brush_action(Sculpt *sd, Object *ob, Brush *brush, UnifiedPaintSe
   else {
     const bool use_original = sculpt_tool_needs_original(brush->sculpt_tool) ? true :
                                                                                ss->cache->original;
-    const float radius_scale = 1.0f;
+    float radius_scale = 1.0f;
+    /* With these options enabled not all required nodes are inside the original brush radius, so
+     * the brush can produce artifacts in some situations */
+    if (brush->sculpt_tool == SCULPT_TOOL_DRAW && brush->flag & BRUSH_ORIGINAL_NORMAL) {
+      radius_scale = 2.0f;
+    }
     nodes = sculpt_pbvh_gather_generic(ob, sd, brush, use_original, radius_scale, &totnode);
   }



More information about the Bf-blender-cvs mailing list