[Bf-blender-cvs] [c416bfa757e] soc-2017-sculpting_improvements: Minor fix, crash on smoothness = 100%.

Sebastian Witt noreply at git.blender.org
Wed Jul 26 15:21:02 CEST 2017


Commit: c416bfa757ea8b53b9e0e1441ef695a1a2d45b10
Author: Sebastian Witt
Date:   Wed Jul 26 15:20:23 2017 +0200
Branches: soc-2017-sculpting_improvements
https://developer.blender.org/rBc416bfa757ea8b53b9e0e1441ef695a1a2d45b10

Minor fix, crash on smoothness = 100%.

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

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 f806516c157..6d9c36279ed 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5556,7 +5556,7 @@ static void calc_vert_quarter(Mesh *me, float a[3], float b[3], float c[3], int
 	float v1[3], v2[3], v3[3], v4[3], v5[3], up[3], side[3], d[3];
 	float f_sin, f_cos;
 	int s_steps_w = inv_smooth * w_h_steps;
-	int s_steps_v = inv_smooth * v_steps;
+	int s_steps_v = fmax(1, inv_smooth * v_steps);
 	int s_steps_c = v_steps - s_steps_v + w_h_steps - s_steps_w;
 
 	ED_mesh_vertices_add(me, NULL, v_steps + w_h_steps - (flip_side ? 1 : 0));




More information about the Bf-blender-cvs mailing list